Package javax.swing

Examples of javax.swing.JFrame.removeWindowListener()


        frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        frame.addWindowListener(windowListener);

        // for testing purpose only
        if (DEBUG) {
            frame.removeWindowListener(windowListener);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setResizable(true);
            String filePath = "C:/Documents and Settings/Administrator/My Documents/";
            String inputFile = filePath + "Test.txt";
            String keyFile = filePath + "Key.txt";
View Full Code Here


      if (!oldValueCache.containsKey(mappedProperty)) {
        oldValueCache.put(mappedProperty, mappedProperty.toString());
         
        mappedProperty.addPropertyChangeListener("value", oldValueChangeListener);
        // TF:01/03/2010:Ensure we're only in the cache once, even if the status text field is changed
        topLevelAncestor.removeWindowListener(windowClosingListener);
        topLevelAncestor.addWindowListener(windowClosingListener);
      }
      // TF:01/03/2010:Always update the old value in the cache, as the mouse exit handler will expect a valid value
      oldValueCache.put(mappedProperty, mappedProperty.toString());
      if (statusTextValue != null) {
View Full Code Here

      if (!oldValueCache.containsKey(mappedProperty)) {
        oldValueCache.put(mappedProperty, mappedProperty.toString());
         
        mappedProperty.addPropertyChangeListener("value", oldValueChangeListener);
        // TF:01/03/2010:Ensure we're only in the cache once, even if the status text field is changed
        topLevelAncestor.removeWindowListener(windowClosingListener);
        topLevelAncestor.addWindowListener(windowClosingListener);
      }
      // TF:01/03/2010:Always update the old value in the cache, as the mouse exit handler will expect a valid value
      oldValueCache.put(mappedProperty, mappedProperty.toString());
      if (statusTextValue != null) {
View Full Code Here

      if (!oldValueCache.containsKey(mappedProperty)) {
        oldValueCache.put(mappedProperty, mappedProperty.toString());
         
        mappedProperty.addPropertyChangeListener("value", oldValueChangeListener);
        // TF:01/03/2010:Ensure we're only in the cache once, even if the status text field is changed
        topLevelAncestor.removeWindowListener(windowClosingListener);
        topLevelAncestor.addWindowListener(windowClosingListener);
      }
      // TF:01/03/2010:Always update the old value in the cache, as the mouse exit handler will expect a valid value
      oldValueCache.put(mappedProperty, mappedProperty.toString());
      if (statusTextValue != null) {
View Full Code Here

        if (_tableaus != null) {
            for (int i = 0; i < _tableaus.length; i++) {
                if (_tableaus[i] != null) {
                    JFrame frame = _tableaus[i].getFrame();
                    if (frame == window) {
                        frame.removeWindowListener(this);
                        _tableaus[i] = null;
                    }
                }
            }
        }
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.