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:
parent
b708c42c7a
commit
aa18e0c184
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user