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
3 changed files with 8 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue