Package java.awt.event

Examples of java.awt.event.WindowAdapter


        listPanel.add(buttonPanel);
        main.add(listPanel);
        addListeners();
        pack();
        setLocationRelativeTo(null);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                okHandler();
            }
        });
        this.setVisible(true);
View Full Code Here


        addListeners();
        loadProfile(profile);

        pack();
        setLocationRelativeTo(null);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                cancelHandler();
            }
        });
    }
View Full Code Here

      ErrorDialog.showError(null,
          i18n.tr("Could not load address book"),
          i18n.tr("JHylaFAX Error"), e);         
    }

    app.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent event) {
        try {
          File file = JHylaFAX.getAddressBookFile();
          app.store(file);
        }
View Full Code Here

    TableExportCsvDlg dialog = new TableExportCsvDlg();
    dialog.setSize(500, 500);
    GUIUtils.centerWithinScreen(dialog);

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

        iconLabel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 5));
        mainPanel.add(iconLabel, BorderLayout.WEST);

        pack();
        setLocationRelativeTo(null);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
            }
        });
    }
View Full Code Here

     */
    public static void addDialog(final Window dialog, boolean signOffKill,
            boolean addCloseHandler) {
        checkInstance();
        if (addCloseHandler) {
            dialog.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    DialogTracker.removeDialog(dialog);
                }
            });
        }
View Full Code Here

  }
 
  private void initializeContent() {
    setTitle("JHylaFAX");
    setLayout(new BorderLayout());
    addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent event) {
        exit();
      }
    });
   
View Full Code Here

      final JFrame frame = new JFrame( "Renderer" );
 
      // exit on close:
          //  Allow window to close
          frame.addWindowListener(
              new WindowAdapter() {
                  @Override
          public void windowClosing(WindowEvent e) {
                    // TODO: close player?
                     // System.exit(0);
                  }
View Full Code Here

    final JFrame frame = new JFrame( "A/V Merge Test" );

    // exit on close:
        //  Allow window to close
        frame.addWindowListener(
            new WindowAdapter() {
                @Override
        public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            }
View Full Code Here

      final JFrame frame = new JFrame( "A/V Clone Test " + i );
 
      // exit on close:
          //  Allow window to close
          frame.addWindowListener(
              new WindowAdapter() {
                  @Override
          public void windowClosing(WindowEvent e) {
                      System.exit(0);
                  }
              }
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.