javax.swing
Class JViewport.ViewListener
java.lang.Object
java.awt.event.ComponentAdapter
javax.swing.JViewport.ViewListener
- All Implemented Interfaces:
- ComponentListener, Serializable, EventListener
- Enclosing class:
- JViewport
protected class JViewport.ViewListener
- extends ComponentAdapter
- implements Serializable
A ComponentListener
that listens for
changes of the view's size. This triggers a revalidate() call on the
viewport.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JViewport.ViewListener
protected JViewport.ViewListener()
- Creates a new instance of ViewListener.
componentResized
public void componentResized(ComponentEvent ev)
- Receives notification when a component (in this case: the view
component) changes it's size. This simply triggers a revalidate() on the
viewport.
- Specified by:
componentResized
in interface ComponentListener
- Overrides:
componentResized
in class ComponentAdapter
- Parameters:
ev
- the ComponentEvent describing the change