/[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.58 by langel, Wed Sep 28 16:50:34 2005 UTC revision 1.59 by langel, Thu Sep 29 14:05:42 2005 UTC
# Line 280  public class Window extends Container im Line 280  public class Window extends Container im
280     */     */
281    public void show()    public void show()
282    {    {
283        synchronized (getTreeLock())
284        {
285      if (parent != null && !parent.isDisplayable())      if (parent != null && !parent.isDisplayable())
286        parent.addNotify();        parent.addNotify();
287      if (peer == null)      if (peer == null)
288        addNotify();        addNotify();
289    
290      // Show visible owned windows.      // Show visible owned windows.
     synchronized (getTreeLock())  
       {  
291          Iterator e = ownedWindows.iterator();          Iterator e = ownedWindows.iterator();
292          while(e.hasNext())          while(e.hasNext())
293            {            {
# Line 304  public class Window extends Container im Line 304  public class Window extends Container im
304                // synchronous access to ownedWindows there.                // synchronous access to ownedWindows there.
305                e.remove();                e.remove();
306            }            }
       }  
307      validate();      validate();
308      super.show();      super.show();
309      toFront();      toFront();
# Line 312  public class Window extends Container im Line 311  public class Window extends Container im
311      KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();      KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();
312      manager.setGlobalFocusedWindow (this);      manager.setGlobalFocusedWindow (this);
313            
     synchronized (getTreeLock())  
     {  
314      if (!shown)      if (!shown)
315        {        {
316          FocusTraversalPolicy policy = getFocusTraversalPolicy ();          FocusTraversalPolicy policy = getFocusTraversalPolicy ();

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

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