/[classpath]/classpath/java/awt/Window.java
ViewVC logotype

Diff of /classpath/java/awt/Window.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35.2.5 by gnu_andrew, Sat Feb 19 10:50:31 2005 UTC revision 1.35.2.6 by gnu_andrew, Sun Mar 13 14:38:39 2005 UTC
# Line 92  public class Window extends Container im Line 92  public class Window extends Container im
92    
93    private transient Component windowFocusOwner;    private transient Component windowFocusOwner;
94        
95      /*
96       * The number used to generate the name returned by getName.
97       */
98      private static transient long next_window_number;
99    
100    protected class AccessibleAWTWindow extends AccessibleAWTContainer    protected class AccessibleAWTWindow extends AccessibleAWTContainer
101    {    {
102      public AccessibleRole getAccessibleRole()      public AccessibleRole getAccessibleRole()
# Line 945  public class Window extends Container im Line 950  public class Window extends Container im
950          getToolkit().getSystemEventQueue().postEvent(ce);          getToolkit().getSystemEventQueue().postEvent(ce);
951        }        }
952    }    }
953    
954      /**
955       * Generate a unique name for this window.
956       *
957       * @return A unique name for this window.
958       */
959      String generateName()
960      {
961        return "win" + getUniqueLong();
962      }
963    
964      private static synchronized long getUniqueLong()
965      {
966        return next_window_number++;
967      }
968  }  }

Legend:
Removed from v.1.35.2.5  
changed lines
  Added in v.1.35.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26