Hi,
Here is my question:
I would like to display images of various sizes using
JInternalFrame.
1. I want to create a JPanel and paint the image on this
JPanel.
2. Create a JScrollPane and add the JPanel to the JScrollPane.
3. Add the JScrollPane into the JInternalFrame.
4. I want to set the size of JInternalFrame to fit the image
size.
I am having trouble with the setSize() method of JInternalFrame.
If I don't use this method, the JInternalFrame doesn't appear.
But I cannot seem to find a good way to set its size to match
the image size. It behaves quite differently from setSize()
of JFrame.
Thanks in advance,
Terry
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
===========================================================================
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".