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

Diff of /classpath/java/awt/Panel.java

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

revision 1.4 by mark, Sun Jan 13 15:45:15 2002 UTC revision 1.5 by tromey, Tue Jan 22 22:00:14 2002 UTC
# Line 1  Line 1 
1  /* Panel.java -- Simple container object.  /* Panel.java -- Simple container object.
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 79  Panel(LayoutManager layoutManager) Line 79  Panel(LayoutManager layoutManager)
79  public void  public void
80  addNotify()  addNotify()
81  {  {
82    if (getPeer() != null)    if (peer == null)
83      return;      peer = getToolkit().createPanel(this);
84      super.addNotify();
   setPeer((ComponentPeer)getToolkit().createPanel(this));  
85  }  }
86    
87  } // class Panel  } // class Panel

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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