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() |
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 |
} |
} |