Package java.awt

Examples of java.awt.Window.dispose()


        Window dialogOwner = getDialogOwner(activeWindow);
        ServiceUIDialog dialog = new ServiceUIDialog(gc, x, y, services, initialIndex, flavor,
                attributes, dialogOwner);
        dialog.show();
        if (dialogOwner != activeWindow) {
            dialogOwner.dispose();
        }
        if (dialog.getResult() == ServiceUIDialog.APPROVE_PRINT) {
            attributes.clear();
            attributes.addAll(dialog.getAttributes());
            return dialog.getPrintService();
View Full Code Here


                                                     sum,
                                                     owner);
        dialog.show();

        if (owner != wnd) {
            owner.dispose();
        }

        /* update this.attrs attribute set and result page format to return */
        if (dialog.getResult() == ServiceUIDialog.APPROVE_PRINT) {
            PrintRequestAttributeSet newattrs = dialog.getAttributes();
View Full Code Here

                        attributes, owner);

        dialog.show();

        if (owner != wnd) {
            owner.dispose();
        }

        if (attributes != dialog.getAttributes()) {
            attributes.addAll(dialog.getAttributes());
        }
View Full Code Here

/*  996 */     win.addWindowListener(new WindowAdapter() { private final boolean val$_doExit;
/*      */
/*  998 */       public void windowClosing(WindowEvent winEvent) { Window w = winEvent.getWindow();
/*  999 */         w.hide();
/*      */         try {
/* 1001 */           w.dispose(); } catch (IllegalStateException e) {
/*      */         }
/* 1003 */         if (this.val$_doExit)
/* 1004 */           System.exit(0);
/*      */       }
/*      */     });
View Full Code Here

/* 221 */           MainFrame.this.applet.destroy();
/*     */         }
/* 223 */         Window w = winEvent.getWindow();
/* 224 */         w.hide();
/*     */         try {
/* 226 */           w.dispose();
/*     */         } catch (IllegalStateException e) {
/*     */         }
/* 229 */         if (this.val$_doExit)
/* 230 */           System.exit(0);
/*     */       }
View Full Code Here

        }
        fsWindow.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() > 1) {
                    done = true;
                    fsWindow.dispose();
                }
            }
        });

        fsWindow.addWindowListener(new WindowHandler());
View Full Code Here

            done = true;
            Window w = (Window)we.getSource();
            if (setNullOnDispose) {
                w.getGraphicsConfiguration().getDevice().setFullScreenWindow(null);
            }
            w.dispose();
        }
    }
}
View Full Code Here

    static class DisposeOnClose extends ComponentAdapter implements Serializable {

        public void componentHidden( ComponentEvent e ) {
            Window w = (Window) e.getComponent();
            w.dispose();
        }
    }
}

class FontTracker implements ActionListener, Serializable {
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

      // Log.debug (currentToolbar.getParent());
      final Window w = SwingUtilities.windowForComponent(toolBar);
      if (w != null)
      {
        w.setVisible(false);
        w.dispose();
      }
    }
    toolBar.setVisible(false);
  }
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.