Package java.awt.event

Examples of java.awt.event.WindowListener


        super(serverMonitor, busId, service);
        setTitle("Conversations: " + service + "@" + busId);

        removeWindowListener(defaultWindowListener);

        addWindowListener(new WindowListener() {
            public void windowOpened(WindowEvent e) {
            }

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


    super(serverMonitor, busId, service);
    updateTitle(null);

    removeWindowListener(defaultWindowListener);

    addWindowListener(new WindowListener() {
      public void windowOpened(WindowEvent e) {
      }

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

      advancedPanel.setVisible(false);

      nav.setLayout(new BorderLayout());

      WL = new WindowListener(){
        public void windowOpened(WindowEvent arg0) {}

        //flush objects on close
        public void windowClosing(WindowEvent arg0) {
View Full Code Here

  private static final long serialVersionUID = -3858819775827952944L;
 
 
  public MainGUI() throws FormException {
    this.setDefaultCloseOperation ( JFrame. DO_NOTHING_ON_CLOSE );
    WindowListener windowListener = new WindowAdapter() {
      // anonymous WindowAdapter class
      public void windowClosing (WindowEvent w) {
        setVisible(false);
       
        try {
View Full Code Here

        tabbedPaneBuscarReemplazar.setSelectedIndex(index);

        getContentPane().add(tabbedPaneBuscarReemplazar, BorderLayout.CENTER);

        WindowListener flst = new WindowAdapter() {
            public void windowActivated(WindowEvent e) {
                m_searchIndex = -1;
                if (tabbedPaneBuscarReemplazar.getSelectedIndex() == 0)
                    txtBuscar1.grabFocus();
                else
View Full Code Here

        Point point = mainMonitorGUI.getLocation();
        setLocation(point.x + 20, point.y + 20);
        setSize(500, 300);

        addWindowListener(new WindowListener() {
            public void windowOpened(WindowEvent e) {
            }

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

            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

        }
    }

    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

        }
    }

    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

        final Window _wnd = wnd;
        final double _widthAspect = widthAspect;
        final double _heightAspect = heightAspect;

        final WindowListener l = new WindowAdapter() {
            @Override
            public void windowOpened(WindowEvent e)
            {
                GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
                int screenX = ge.getCenterPoint().x * 2;
 
View Full Code Here

TOP

Related Classes of java.awt.event.WindowListener

Copyright © 2018 www.massapicom. 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.