Examples of addWindowListener()


Examples of se.kth.speech.skatta.player.TestPlayer.addWindowListener()

            try {
                JFileChooser theChooser1 = new JFileChooser();
                int returnVal = theChooser1.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    player = new TestPlayer(theChooser1.getSelectedFile());
                    player.addWindowListener(this);
                    setVisible(false);
                }
            }
            catch (Exception ex) {
                String outMessage = ex.getMessage();
View Full Code Here

Examples of systeminformationmonitor.swing.JavaEnvDialog.addWindowListener()

    @Action
    public void showJavaInformationDialog() {
        // create the dialog
        final JavaEnvDialog javaInformationDialog = new JavaEnvDialog(getFrame(), true);
        javaInformationDialog.addWindowListener(new java.awt.event.WindowAdapter() {

            @Override
            public void windowOpened(WindowEvent e) {
                JavaInformationObject javaOjb =
                        JavaInformation.getJavaInformation();
View Full Code Here

Examples of weka.gui.PropertyDialog.addWindowListener()

              PropertyDialog pd;
              if (PropertyDialog.getParentDialog(GUI.this) != null)
                pd = new PropertyDialog(PropertyDialog.getParentDialog(GUI.this), ce, 100, 100);
              else
                pd = new PropertyDialog(PropertyDialog.getParentFrame(GUI.this), 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

Examples of weka.gui.arffviewer.ArffViewer.addWindowListener()

      setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.CTRL_MASK));
   
    jMenuItemToolsArffViewer.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        final ArffViewer av = new ArffViewer();
        av.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent w) {
            m_ArffViewers.remove(av);
            checkExit();
          }
        });
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.