Examples of WindowListener


Examples of java.awt.event.WindowListener

      }
    });
  }

  public static void addWinListener(final FBEdit fbedit) {
    fbedit.addWindowListener(new WindowListener() {

      public void windowOpened(WindowEvent windowevent) {
      }

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

Examples of java.awt.event.WindowListener

        frame.add(text, BorderLayout.CENTER);
        frame.add(southPanel, BorderLayout.SOUTH);
        frame.pack();

        frame.addWindowListener(new WindowListener() {
            @Override
            public void windowOpened(WindowEvent e) {}

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

Examples of java.awt.event.WindowListener

    harness.check(correctException, true);
    correctException = false;
   
    // The create method should throw a NullPointerException if the target object is null.
    try {
      WindowListener w = (WindowListener) EventHandler.create(WindowListener.class, null, "bla", "foo", "windowClosing");
    } catch (Exception e) {
      correctException = e.getClass() == NullPointerException.class;
    }
    harness.check(correctException, true);
    correctException = false;
View Full Code Here

Examples of java.awt.event.WindowListener

                return examples.get(index);
            }
        };
        examplesList.setModel(model);
       
        this.addWindowListener(new WindowListener() {

            @Override
            public void windowOpened(WindowEvent e) {
            }
View Full Code Here

Examples of java.awt.event.WindowListener

        class PicEditToolBarUIDialog extends JDialog {
            PicEditToolBarUIDialog() {
                this.getRootPane().putClientProperty("Window.style", "small");
                this.setResizable(false);
                this.setAlwaysOnTop(true);
                WindowListener windowListener = createFrameListener();
                this.addWindowListener(windowListener);
            }
View Full Code Here

Examples of java.awt.event.WindowListener

   *
   * @param s
   *            The command line arguments
   */
  public static void main(String[] s) {
    WindowListener l = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
    };

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

    } else
      currentLocale = Locale.getDefault();

    frame = new BankAdmin(currentLocale);
    frame.setTitle(messages.getString("CustAndAccountAdmin"));
    WindowListener l = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
  System.exit(0);
      }
    };
    frame.addWindowListener(l);
View Full Code Here

Examples of java.awt.event.WindowListener

        }
    }

    protected void processWindowEvent(WindowEvent e) {
        for (Iterator<?> i = windowListeners.getUserIterator(); i.hasNext();) {
            WindowListener listener = (WindowListener) i.next();
            switch (e.getID()) {
                case WindowEvent.WINDOW_ACTIVATED:
                    listener.windowActivated(e);
                    break;
                case WindowEvent.WINDOW_CLOSED:
                    listener.windowClosed(e);
                    break;
                case WindowEvent.WINDOW_CLOSING:
                    listener.windowClosing(e);
                    break;
                case WindowEvent.WINDOW_DEACTIVATED:
                    listener.windowDeactivated(e);
                    break;
                case WindowEvent.WINDOW_DEICONIFIED:
                    listener.windowDeiconified(e);
                    break;
                case WindowEvent.WINDOW_ICONIFIED:
                    listener.windowIconified(e);
                    break;
                case WindowEvent.WINDOW_OPENED:
                    listener.windowOpened(e);
                    break;
            }
        }
    }
View Full Code Here

Examples of java.awt.event.WindowListener

    }

    public static void main(String[] args) {
        JFrame frame = new JFrame("MyDoggy Test");
        final MyDoggyToolWindowManager myDoggyToolWindowManager = init();
        frame.addWindowListener(new WindowListener() {
            public void windowActivated(WindowEvent e) {
            }

            public void windowClosed(WindowEvent e) {
                System.out.println("[pa] #windowClosed");
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.