Hello,
I am creating a panel (extending JPanel) which will display a BufferedImage.
In each corner of the JPanel I want to place a control. That is, the
controls will be painted inside the JPanel on top of the BufferedImage.
One alternative would be to use Shapes as my controls and use the
Graphics2D.hit( ) method inside the panel's MouseListener.
However, I would prefer something more object-oriented, that is, I would to
build a control class that:
1) would take the Panel's Graphics2D as a parameter so that it could draw
itself on the panel.
2) would have its own MouseListener so that it could respond to left and
right clicks, drags, etc.
Can someone suggest a good design strategy?
Could each control be a subclass of a separate JPanel or other Swing
component?
Thank you for your suggestions,
Ted Hill
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".