Package java.awt

Examples of java.awt.Frame.dispose()


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


      Panel panel = new Panel(new BorderLayout());
      frame.add(panel)
      panel.setVisible(true);
      frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          frame.dispose();
          document.close();
          file.delete();
          try {
            System.out.println("Deactivating OpenOffice.org connection ...");
            application.deactivate();
View Full Code Here

      System.out.println("Document for test loaded.");
      frame.validate();
      officeFrame.getXFrame().getController().suspend(true);
      document.close();

      frame.dispose();
      document.close();
      file.delete();
      try {
        System.out.println("Deactivating OpenOffice.org connection ...");
        application.deactivate();
View Full Code Here

      Panel panel = new Panel(new BorderLayout());
      frame.add(panel);
      panel.setVisible(true);
      frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          frame.dispose();
          document.close();
          file.delete();
          try {
            System.out
                .println("Deactivating OpenOffice.org connection ...");
View Full Code Here

      System.out.println("Document for test loaded.");
      frame.validate();
      officeFrame.getXFrame().getController().suspend(true);
      document.close();

      frame.dispose();
      document.close();
      file.delete();
      try {
        System.out
            .println("Deactivating OpenOffice.org connection ...");
View Full Code Here

      Panel panel = new Panel(new BorderLayout());
      frame.add(panel)
      panel.setVisible(true);
      frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent windowEvent) {
          frame.dispose();
          try {
            officeAplication.deactivate();
          }
          catch (OfficeApplicationException applicationException) {           
          }
View Full Code Here

        }
        catch(InterruptedException interruptedException) {
          //do not consume  
          //TODO: clear the document in the office system
          officeFrame.close();
          frame.dispose();
          composite.dispose();
          composite = new Composite(parent, SWT.EMBEDDED);
          return composite;
        }
        Exception exception = loadTextDocumentOperation.getException();
View Full Code Here

        try {
            receiver.run();
        } finally {
            if (frame != null) {
                frame.setVisible(false);
                frame.dispose();
            }
            this.shutdown();
        }
    }
View Full Code Here

                graphic.dispose();
            }

            job.end();
        }
        parent.dispose();
    }

    /*
     *
     *
 
View Full Code Here

        final FileDialog dialog = new FileDialog(parent, saveDialogTitle, FileDialog.SAVE);
        dialog.setVisible(true);
        final String file = dialog.getFile();
        final String dir = dialog.getDirectory();

        parent.dispose();

        saveToFile(new File(dir, file), title, text);
    }
}
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.