Package javax.swing

Examples of javax.swing.JDialog.dispose()


    jd.dispose();}
      });
    jd.addWindowListener( new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
    m_attribList.setSelectedIndices(savedSelection);
    jd.dispose();}
      });
    jp.add(okBt);
    jp.add(cancelBt);

    jd.getContentPane().add(js, BorderLayout.CENTER);
View Full Code Here


      };
    jd.setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
            
    doneBt.addActionListener( new ActionListener(){
        public void actionPerformed(ActionEvent ae) {
    jd.dispose()
        }
      });
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    JPanel p1 = new JPanel( gbl );   
View Full Code Here

    else
      jdtmp = new JDialog(PropertyDialog.getParentFrame(this), Messages.getInstance().getString("PropertySheetPanel_OpenHelpFrame_Jdtmp_JDialog_Text_Second"));
    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

            System.err.println(e.getLocalizedMessage());
        }
        catch (Exception e){
          System.err.println("Error: " + e.getMessage());
        }
        dialog.dispose(); //closes 'Loading' dialog
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        MainForm thisClass = new MainForm();
        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        thisClass.setVisible(true);
View Full Code Here

        KeyStroke.getKeyStroke( KeyEvent.VK_D, BasicMenuFactory.MENU_SHORTCUT ), "dont" );
      rp.getActionMap().put( "dont", new AbstractAction() {
        public void actionPerformed( ActionEvent e )
        {
          dont.settrue );
          d.dispose();
        }
      });
    }
    BasicWindowHandler.showDialog( d );
//    d.setVisible( true );
View Full Code Here

        p.add(Box.createHorizontalGlue());
        final JOptionPane op = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
        op.setWantsInput(true);
        JDialog dlg = op.createDialog(this, prompt);
        dlg.show();
        dlg.dispose();
        Object value = op.getInputValue();
        if (value == JOptionPane.UNINITIALIZED_VALUE) {
            return null;
        }
        String str = (String) value;
View Full Code Here

        p.add(Box.createHorizontalGlue());
        final JOptionPane op = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
        op.setWantsInput(true);
        JDialog dlg = op.createDialog(this, prompt);
        dlg.show();
        dlg.dispose();
        Object value = op.getInputValue();
        if (value == JOptionPane.UNINITIALIZED_VALUE) {
            return null;
        }
        String str = (String) value;
View Full Code Here

                reloadPacksPanel(); // Reload packs panel
                loadUsers(); // Load the Testers and Allowed Players for the packs
                loadInstances(); // Load the users installed Instances
                reloadInstancesPanel(); // Reload instances panel
                dialog.setVisible(false); // Remove the dialog
                dialog.dispose(); // Dispose the dialog
            }
        });
        dialog.setVisible(true);
    }
View Full Code Here

                    boolean generated = (generatorPanel.getInstances() != null);
                    if (generated)
                      setInstances(generatorPanel.getInstances());

                    // close dialog
                    dialog.dispose();

                    // get last generator
                    m_DataGenerator = generatorPanel.getGenerator();

                    // display output?
View Full Code Here

              JOptionPane.INFORMATION_MESSAGE);
          }
          catch (Exception e) {
            e.printStackTrace();
          }
          dialog.dispose();
        }
      }
    });
    closeButton.setMnemonic('C');
    closeButton.setToolTipText("Closes the dialog");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.