Examples of WindowListener


Examples of java.awt.event.WindowListener

     */
    public void showCalendarFrame() {
        calendarFrame = new JXFrame("Calendar 2010");
        calendarFrame.setName("calendar2010");
        calendarFrame.setDefaultCloseOperation(JXFrame.DO_NOTHING_ON_CLOSE);
        WindowListener l = new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e) {
                calendarFrame.removeWindowListener(this);
                hideCalendarFrame();
View Full Code Here

Examples of java.awt.event.WindowListener

      @Override
      public void componentHidden(ComponentEvent e) {
        relocate();
      }
    });
    owner.addWindowListener(new WindowListener() {
      @Override
      public void windowOpened(WindowEvent e) {
      }

      @Override
View Full Code Here

Examples of java.awt.event.WindowListener

            public void actionPerformed(ActionEvent e) {
                //ATEConfigEditPanel configPanel = new  ATEConfigEditPanel(null);
                //configPanel.setVisible(true);
                MainConfigFrame configFrame = new MainConfigFrame();
                configFrame.launch();
                configFrame.addWindowListener(new WindowListener() {

                    public void windowOpened(WindowEvent e) {
                    }

                    public void windowClosing(WindowEvent e) {
View Full Code Here

Examples of java.awt.event.WindowListener

                dialog = new JDialog((Frame)window, title, false);
            } else {
                dialog = new JDialog((Dialog)window, title, false);
            }
            if (window instanceof SwingUtilities.SharedOwnerFrame) {
                WindowListener ownerShutdownListener =
                        SwingUtilities.getSharedOwnerFrameShutdownListener();
                dialog.addWindowListener(ownerShutdownListener);
            }
            Container contentPane = dialog.getContentPane();
View Full Code Here

Examples of java.awt.event.WindowListener

            dialog = new JDialog((Frame)window, title, true)
        } else {
            dialog = new JDialog((Dialog)window, title, true);
        }
   if (window instanceof SwingUtilities.SharedOwnerFrame) {
      WindowListener ownerShutdownListener =
    (WindowListener)SwingUtilities.getSharedOwnerFrameShutdownListener();
       dialog.addWindowListener(ownerShutdownListener);
   }
        initDialog(dialog, style, parentComponent);
        return dialog;
View Full Code Here

Examples of java.awt.event.WindowListener

   {
      super(mainFrame, title, false);
      setResizable(resizable);
      _widget = widget;

      addWindowListener(new WindowListener()
      {
         public void windowOpened(WindowEvent e)
         {
            _eventCaster.fireWidgetOpened(new WidgetEvent(e, _widget));
         }
View Full Code Here

Examples of java.awt.event.WindowListener

     *                      changes on.
     * @param focusListener the {@code WindowFocusListener} to notify when focus
     *                      changes.
     */
    public static void installWeakWindowFocusListener(JComponent component, WindowFocusListener focusListener) {
        WindowListener   weakFocusListener = createWeakWindowFocusListener(focusListener);
        AncestorListener ancestorListener  = createAncestorListener(component, weakFocusListener);

        component.addAncestorListener(ancestorListener);
    }
View Full Code Here

Examples of java.awt.event.WindowListener

     * @param component the {@code JComponent} to add the repaint focus listener
     *                  to.
     */
    public static void installJComponentRepainterOnWindowFocusChanged(JComponent component) {
        // TODO check to see if the component already has an ancestor.
        WindowListener   windowListener   = createWeakWindowFocusListener(createRepaintWindowListener(component));
        AncestorListener ancestorListener = createAncestorListener(component, windowListener);

        component.addAncestorListener(ancestorListener);
    }
View Full Code Here

Examples of java.awt.event.WindowListener

                }
            }
        });

        // set the window listener
        dialog.addWindowListener(new WindowListener() {
            public void windowClosing(WindowEvent e) {
                close();
            }

            public void windowActivated(WindowEvent e) {
View Full Code Here

Examples of java.awt.event.WindowListener

    dialog = new JDialog((Frame)window, title, false)
      } else {
    dialog = new JDialog((Dialog)window, title, false);
      }
        if (window instanceof SwingUtilities.SharedOwnerFrame) {
      WindowListener ownerShutdownListener =
          (WindowListener)SwingUtilities.getSharedOwnerFrameShutdownListener();
      dialog.addWindowListener(ownerShutdownListener);
        }
            Container contentPane = dialog.getContentPane();
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.