Package examples

Class ActionMapExample.BaseScenePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener
Direct Known Subclasses:
ActionMapExample.DerivedScenePanelA, ActionMapExample.DerivedScenePanelB
Enclosing class:
ActionMapExample

public static class ActionMapExample.BaseScenePanel extends JComponent implements PropertyChangeListener
A JComponent that renders a Scene and defines two @Actions:
  • create - adds a new Node to the scene to the right of the last one
  • remove - removes the selected Node
These actions are added to a popup menu.

Subclasses can override the create and remove methods to change the corresponding actions.

See Also: