Package java.awt.event

Examples of java.awt.event.WindowAdapter


  helpAction = new HelpAction
      (frame.helpDiag, GUIGlobals.stringEditorHelp, "Help");


  addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
        closeAction.actionPerformed(null);
    }
      });
View Full Code Here


        ActionMap am = contentPane.getActionMap();
        InputMap im = contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        im.put(Globals.prefs.getKey("Close dialog"), "close");
        am.put("close", closeAction);
       
        diag.addWindowListener(new WindowAdapter() {
            public void windowOpened(WindowEvent e) {
                contentPane.setDividerLocation(0.5f);
            }

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

        getContentPane().add(bb.getPanel(), BorderLayout.SOUTH);

        // Remember and default to last size:
        setSize(new Dimension(Globals.prefs.getInt("importInspectionDialogWidth"), Globals.prefs
            .getInt("importInspectionDialogHeight")));
        addWindowListener(new WindowAdapter() {

            public void windowOpened(WindowEvent e) {
                contentPane.setDividerLocation(0.5f);
            }
View Full Code Here

  super(baseFrame_, true); // Set modal on.


  setTitle(Globals.lang("Select entry type"));

  addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
        cancelAction.actionPerformed(null);
    }
      });
View Full Code Here

      catch (Exception e) { showException(this,e); }
    }
  }

  private void customizeComponents() throws java.rmi.RemoteException, java.rmi.NotBoundException, java.net.MalformedURLException {
    this.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) { exitGUI(); }
    });
    commonFileChooser= new JFileChooser();
    commonFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
  }
View Full Code Here

          }
        }
      });
    // Control frame closing and activation
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    WindowAdapter windowListener = new WindowAdapter () {
        private Component mostRecentFocusOwner;

        @Override
        public void windowStateChanged(WindowEvent ev) {
          controller.setVisualProperty(FRAME_MAXIMIZED_VISUAL_PROPERTY,
View Full Code Here

     * @see java.awt.Dialog#setModal(boolean)
     */
    public void setModal(boolean b) {
        super.setModal(b);
        if (b) {
            this.addWindowFocusListener(new WindowAdapter() {
                public void windowLostFocus(WindowEvent e) {
                    ProgressDialog.this.requestFocus();
                }
            });
        }
View Full Code Here

                GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0,
                        0, 0, 0), 0, 0));
        setSize(500, 300);
        this.setModal(true);
        this.setTitle(LangageManager.getProperty("listgen.progress"));
        this.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                aborted = true;
            }
        });
    }
View Full Code Here

        mp.append(new String(cbuf));
        ch = st.read();
      }
      final Frame top  = new Frame("Show URL");
      top.addWindowListener(
        new WindowAdapter() {

          public void windowClosing(WindowEvent windowEvent) {
            top.dispose();
          }
        });
View Full Code Here

        restoreButton.setName("restore");
        restoreButton.addActionListener(this);
        if (southPanel != null) {
            southPanel.add(restoreButton);
        }
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                super.windowClosing(e);
                if (settingPanel!=null) {
                    settingPanel.rollback();
                }
View Full Code Here

TOP

Related Classes of java.awt.event.WindowAdapter

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.