Package java.awt

Examples of java.awt.Window.dispose()


                                        DocFlavor.SERVICE_FORMATTED.PAGEABLE,
                                        attributes, (Dialog)window);
                }
                pageDialog.show();
                if (isNewFrame) {
                    window.dispose();
                }

                if (pageDialog.getStatus() == ServiceDialog.APPROVE) {
                    PrintRequestAttributeSet newas =
                        pageDialog.getAttributes();
View Full Code Here


      m_Backup = copyObject(m_Object);
      if ((getTopLevelAncestor() != null)
    && (getTopLevelAncestor() instanceof Window)) {
        Window w = (Window) getTopLevelAncestor();
        w.dispose();
      }
    }
  });
     
      m_cancelBut = new JButton("Cancel");
View Full Code Here

        updateChildPropertySheet();
      }
      if ((getTopLevelAncestor() != null)
    && (getTopLevelAncestor() instanceof Window)) {
        Window w = (Window) getTopLevelAncestor();
        w.dispose();
      }
    }
  });
     
      setLayout(new BorderLayout());
View Full Code Here

          currentProject.setStartupParam( "ExitOnClose", "true" );
          Window window = currentProject.getAppWindow();
          if ( window != null )
            window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_CLOSING ));
         
          window.dispose();
          System.gc();
        }
      });
     
      JMenuItem openItem = new JMenuItem( "Open" );
View Full Code Here

        private void startMagic() {
            try {
                Window w = SwingUtilities.getWindowAncestor(ui);
                if (w instanceof JDialog) {
                    w.dispose();
                }
                Class<?> clazz = Class.forName("org.jitterbit.integration.internal.ui.util.MusicalOrbits");
                Method start = clazz.getMethod("openInDialog", new Class[0]);
                start.invoke(null, new Object[0]);
            } catch (Exception ex) {
View Full Code Here

   */
  private void restoreScreen()
  {
    Window w = gd.getFullScreenWindow();
    if (w != null)
      w.dispose();
    gd.setFullScreenWindow(null);
  } // end of restoreScreen()

  // ------------------ display mode methods -------------------

View Full Code Here

                // ha!, the toolbar is floating ...
                // Log.debug (currentToolbar.getParent());
                final Window w = SwingUtilities.windowForComponent(this.currentToolbar);
                if (w != null) {
                    w.setVisible(false);
                    w.dispose();
                }
            }
            this.currentToolbar.setVisible(false);
        }
    }
View Full Code Here

    if (getComponent() instanceof Window) {
    Runnable disposer = new Runnable() {
      @Override
      public void run() {
      Window window = (Window) getComponent();
      window.dispose();
      }
    };
    if (SwingUtilities.isEventDispatchThread()) {
      disposer.run();
    } else {
View Full Code Here

    }

    private void closeDialog() {
        Window w = SwingUtilities.getWindowAncestor(this);
        w.setVisible(false);
        w.dispose();
    }

    private void showUrl() {
        if (url != null) {
            org.openide.awt.StatusDisplayer.getDefault().setStatusText(
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.