Container.java (addNotify): Unconditionally call addNotifyContainerChildren and superclass addNotify.

* java/awt/Container.java (addNotify): Unconditionally call
	addNotifyContainerChildren and superclass addNotify.

From-SVN: r49206
This commit is contained in:
Tom Tromey 2002-01-25 07:04:06 +00:00 committed by Tom Tromey
parent 3a9ebf3ced
commit 0983da5b0f
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,8 @@
2002-01-24 Tom Tromey <tromey@redhat.com> 2002-01-24 Tom Tromey <tromey@redhat.com>
* java/awt/Container.java (addNotify): Unconditionally call
addNotifyContainerChildren and superclass addNotify.
* java/awt/image/ColorModel.java (getAlpha(Object)): Call * java/awt/image/ColorModel.java (getAlpha(Object)): Call
getAlpha, not getBlue. getAlpha, not getBlue.

View file

@ -904,13 +904,10 @@ public class Container extends Component
* created. * created.
*/ */
public void addNotify () public void addNotify ()
{
if (peer == null)
{ {
addNotifyContainerChildren (); addNotifyContainerChildren ();
super.addNotify(); super.addNotify();
} }
}
private void addNotifyContainerChildren() private void addNotifyContainerChildren()
{ {