Package java.awt.event

Examples of java.awt.event.WindowAdapter


    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(questionPanel(), BorderLayout.NORTH);
    getContentPane().add(editPanel(), BorderLayout.CENTER);
    getContentPane().add(buttonPanel(), BorderLayout.SOUTH);

    addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
      dispose();
      cancelled = true;
  }
  });
View Full Code Here


      }
      else   
  ce.setValue(initial);
     
      PropertyDialog pd = new PropertyDialog((Frame) null, ce, 100, 100);
      pd.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
      PropertyEditor pe = ((PropertyDialog)e.getSource()).getEditor();
      Object c = (Object)pe.getValue();
      String options = "";
      if (c instanceof OptionHandler) {
View Full Code Here

  "There",
  "Bob"
  };*/
      PropertyDialog pd = new PropertyDialog((Frame) null, ce, 100, 100);
      pd.setSize(200,200);
      pd.addWindowListener(new WindowAdapter() {
  private static final long serialVersionUID = -3124434678426673334L;
  public void windowClosing(WindowEvent e) {
    System.exit(0);
  }
      });
View Full Code Here

    if (PropertyDialog.getParentDialog(this) != null)
      jdtmp = new JDialog(PropertyDialog.getParentDialog(this), "Information");
    else
      jdtmp = new JDialog(PropertyDialog.getParentFrame(this), "Information");
    final JDialog jd = jdtmp;
    jd.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        jd.dispose();
        if (m_HelpDialog == jd) {
          m_HelpBut.setEnabled(true);
        }
View Full Code Here

      final PreprocessPanel sp = new PreprocessPanel();
      jf.getContentPane().add(sp, BorderLayout.CENTER);
      weka.gui.LogPanel lp = new weka.gui.LogPanel();
      sp.setLog(lp);
      jf.getContentPane().add(lp, BorderLayout.SOUTH);
      jf.addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
    jf.dispose();
    System.exit(0);
  }
      });
View Full Code Here

      m_CapabilitiesText.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      m_CapabilitiesText.setLineWrap(true);
      m_CapabilitiesText.setWrapStyleWord(true);
      m_CapabilitiesText.setEditable(false);
      updateText();
      addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
    m_Self.dispose();
    if (m_CapabilitiesDialog == m_Self) {
      m_CapabilitiesBut.setEnabled(true);
    }
View Full Code Here

    Settings.layoutWindow("softwareUpdateDlg", this, new Dimension(700,600));

    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

    addWindowListener(new WindowAdapter() {
      @Override
      public void windowClosing(WindowEvent e) {
        if(!mIsVersionChange || mSoftwareUpdateItemList.getSelection().length == 0) {
          close();
        }
View Full Code Here

      }
    });

    configure.pack();

    configure.addWindowListener(new WindowAdapter() {
      public void windowDeactivated(WindowEvent e) {
        if(!form.isSearchFieldsSelectionDialogVisible()) {
          ((JDialog)e.getSource()).setVisible(false);
          mSearchFormSettings = form.getSearchFormSettings();
          saveSearchFormSettings();
View Full Code Here

    mDialog.getRootPane().setDefaultButton(mCloseBtn);

    mFindAsYouType.installKeyListener(mDialog.getRootPane());

    mDialog.addWindowListener(new WindowAdapter() {
      @Override
      public void windowClosing(WindowEvent e) {
        exit();
      }
View Full Code Here

        FurnitureLibraryEditor.class.getResource("resources/frameIcon.png")).getImage());
    furnitureFrame.setLocationByPlatform(true);
    furnitureFrame.pack();
    furnitureFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    furnitureFrame.setVisible(true);
    furnitureFrame.addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent ev) {
          editorController.exit();
        }
      });
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.