Commit aa18e0c1 by Bryce McKinlay Committed by Bryce McKinlay

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
parent b708c42c
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.
......
......@@ -1283,7 +1283,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
public String toString()
{
return paramString();
return this.getClass().getName() + "[" + paramString() + "]";
}
public void list()
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment