Package java.awt

Examples of java.awt.Frame.dispose()


    ex.printStackTrace();
     
  } else  if(command.equals("close")) {
      Frame cont = (Frame)getParent();
      cont.setVisible(false);
      cont.dispose();
      WindowCloser.windows--;
      if (WindowCloser.windows < 0)
    System.exit(0);
  } else  if(command.equals("quit")) {
      Frame cont = (Frame)getParent();
View Full Code Here


      if (WindowCloser.windows < 0)
    System.exit(0);
  } else  if(command.equals("quit")) {
      Frame cont = (Frame)getParent();
      cont.setVisible(false);
      cont.dispose();
      WindowCloser.windows = 0;
      System.exit(0);
  }
    }
View Full Code Here

    protected void dispose(boolean Ok) {
      if (! Ok) {
  Frame f = getFrame(this);
  if (f != null)
    f.dispose();
  WindowCloser.windows--;
  popup.dispose();
  if (WindowCloser.windows < 0)
    System.exit(0);
      } else  if (popup != null) {
View Full Code Here

      popup.setVisible(false);
      if (pp.canceled())
    return null;
      Base64Encoder encoder =
    new Base64Encoder(pp.getUserName()+":"+pp.getPassword());
      popup.dispose();
      return encoder.processString();
  }

  protected void add() {
      Rule added = null;
View Full Code Here

  // Wait for completion, pack up the result, and delete GUI:
  boolean result = waitForCompletion();
  this.user      = txtUser.getText();
  this.password  = txtPassword.getText();
  toplevel.hide();
  toplevel.dispose();
  return result;
    }

    PasswordPrompter(Request request, Reply reply) {
  // Setup the layout:
View Full Code Here

      shell.removeListener (SWT.Deiconify, shellListener);
      shell.removeListener (SWT.Iconify, shellListener);
      parent.setVisible(false);
      EventQueue.invokeLater(new Runnable () {
        public void run () {
          frame.dispose ();
        }
      });
    }
  });
  parent.getDisplay().asyncExec(new Runnable() {
View Full Code Here

          shell.removeListener (SWT.Deiconify, shellListener);
          shell.removeListener (SWT.Iconify, shellListener);
          parent.setVisible(false);
          EventQueue.invokeLater(new Runnable () {
            public void run () {
              frame.dispose ();
            }
          });
          break;
        case SWT.Activate:
          EventQueue.invokeLater(new Runnable () {
View Full Code Here

    addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        Frame f = (Frame) e.getSource();
        f.setVisible(false);
        f.dispose();
        // System.exit(0);
      }
    });
  }
View Full Code Here

    final Controller controller = getController();
    ResourceController.getResourceController().firePropertyChanged(FULLSCREEN_ENABLED_PROPERTY, Boolean.toString(!fullScreen),Boolean.toString(fullScreen));
    Iterable<Window> visibleFrames = collectVisibleFrames(frame);
    if (fullScreen) {
      winState = frame.getExtendedState();
      frame.dispose();
      frame.setExtendedState(Frame.MAXIMIZED_BOTH);
      final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
      frame.setBounds(0, 0, screenSize.width, screenSize.height);
      frame.setUndecorated(true);
      frame.setResizable(false);
View Full Code Here

        }
      }
      showWindows(visibleFrames);
    }
    else {
      frame.dispose();
      frame.setUndecorated(false);
      frame.setResizable(true);
      frame.setBounds(frameSize);
      frame.setExtendedState(winState);
      setUIComponentsVisible(controller.getMapViewManager(), isMenubarVisible());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.