Package util.ui

Examples of util.ui.WindowClosingIf


      }
    });

    panel.add(ok, cc.xy(3,3));

    UiUtilities.registerForClosing(new WindowClosingIf() {
      public void close() {
        configure.removeWindowListener(configure.getWindowListeners()[0]);
        configure.setVisible(false);
        textField.requestFocusInWindow();
        textField.selectAll();
View Full Code Here


    mDialog.setModal(true);

    mDialog.setTitle(mProgram.getTitle());
    mDialog.setContentPane(mMainPanel);

    UiUtilities.registerForClosing(new WindowClosingIf() {
      public void close() {
        exit();
      }

      public JRootPane getRootPane() {
View Full Code Here

        mDialog = new JDialog(getParentFrame());
        mDialog.setTitle(mLocalizer.msg("name", "Important programs"));
        mDialog.getContentPane().setLayout(new BorderLayout(0, 10));
        ((JPanel) mDialog.getContentPane()).setBorder(Borders.DIALOG_BORDER);

        UiUtilities.registerForClosing(new WindowClosingIf() {

          public void close() {
            closeDialog();
          }
View Full Code Here

      if (Settings.propShowBrowserOpenDialog.getBoolean()){
        final JDialog dialog = new JDialog(MainFrame.getInstance(), true);
        dialog.setTitle(mLocalizer.msg("okTitle", "okTitle"));

        UiUtilities.registerForClosing(new WindowClosingIf() {
          public void close() {
            dialog.setVisible(false);
            Settings.propShowBrowserOpenDialog.setBoolean(true);
          }
          public JRootPane getRootPane() {
View Full Code Here

    mMarkListsList.setSelectedIndex(0);
    selectPrograms(true);

    mParent.getRootPane().setDefaultButton(mClose);

    UiUtilities.registerForClosing(new WindowClosingIf() {
      public void close() {
        closeDialog();
      }

      public JRootPane getRootPane() {
View Full Code Here

                }
              });

              deletedListDialog.getContentPane().add(ok, cc.xy(1,5));

              UiUtilities.registerForClosing(new WindowClosingIf() {
                public void close() {
                  deletedListDialog.dispose();
                }

                public JRootPane getRootPane() {
View Full Code Here

    JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    buttonPanel.add(configure);
    buttonPanel.add(ok);
    panel.add(buttonPanel, cc.xy(1, 5));

    UiUtilities.registerForClosing(new WindowClosingIf() {
      public void close() {
        dialog.setVisible(false);
      }
      public JRootPane getRootPane() {
        return dialog.getRootPane();
View Full Code Here

    JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    buttonPanel.add(ok);
    panel.add(buttonPanel, cc.xy(2, 9));

    UiUtilities.registerForClosing(new WindowClosingIf() {
      public void close() {
        dialog.setVisible(false);
      }
      public JRootPane getRootPane() {
        return dialog.getRootPane();
View Full Code Here

TOP

Related Classes of util.ui.WindowClosingIf

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.