i’m implementing a ViewportNavigator component, which takes a Viewport in the constructor and from a timer it makes a small image of the contained component letting you navigate the whole area.
The ViewportNavigator is a ComponentListener of both the Viewport and the contained Component so the small image will be updated when both change in size. For changing the image also when the Viewport area is changed, i need to subclass the Viewport and make use of the virtual visibleAreaChanged, but then the ViewportNavigator will work only with this new type of component and not with every viewport.
What would be good and logic would be to add a ViewportListener interface so i can be notified of a visibleAreaChanged even from external components.
i hope you’ll find this a sensible request…