Component.java (toString): Implemented.

* java/awt/Component.java (toString): Implemented.
	* java/awt/Container.java (addImpl): Remove FIXME. Only call
	dispatchEvent() to dispatch the event.
	(removeImpl): Ditto.

From-SVN: r35363
This commit is contained in:
Bryce McKinlay 2000-07-31 04:11:49 +00:00 committed by Bryce McKinlay
parent b708c42c7a
commit aa18e0c184
3 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,10 @@
2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
* java/awt/Component.java (toString): Implemented.
* java/awt/Container.java (addImpl): Remove FIXME. Only call
dispatchEvent() to dispatch the event.
(removeImpl): Ditto.
2000-07-30 Anthony Green <green@redhat.com>
* java/awt/Component.java: Add treeLock object.

View File

@ -1283,7 +1283,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
public String toString()
{
return paramString();
return this.getClass().getName() + "[" + paramString() + "]";
}
public void list()

View File

@ -154,11 +154,7 @@ public abstract class Container extends Component
ContainerEvent ce = new ContainerEvent (this,
ContainerEvent.COMPONENT_ADDED,
comp);
// FIXME: is this right?
dispatchEvent (ce);
if (containerListener != null)
containerListener.componentAdded (ce);
}
public void remove (int index)
@ -179,11 +175,7 @@ public abstract class Container extends Component
ContainerEvent ce = new ContainerEvent (this,
ContainerEvent.COMPONENT_REMOVED,
r);
// FIXME: is this right?
dispatchEvent (ce);
if (containerListener != null)
containerListener.componentAdded (ce);
}
public void remove (Component comp)