javax.swing

Class JViewport.ViewListener

protected class JViewport.ViewListener extends ComponentAdapter implements Serializable

A {@link java.awt.event.ComponentListener} that listens for changes of the view's size. This triggers a revalidate() call on the viewport.
Constructor Summary
protected ViewListener()
Creates a new instance of ViewListener.
Method Summary
voidcomponentResized(ComponentEvent ev)
Receives notification when a component (in this case: the view component) changes it's size.

Constructor Detail

ViewListener

protected ViewListener()
Creates a new instance of ViewListener.

Method Detail

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.

Parameters: ev the ComponentEvent describing the change