----- LMKR Forwarding System : This mail Forwarded by Faisal
Mirza/IT/LotusCert/Pk on 09/06/01 08:46 AM -----
Terry Wu
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
om> cc:
Sent by: Discussion bcc:
list for Java 2D API Subject: [JAVA2D] JInternalFrame:
How to Set Size???
<JAVA2D-INTEREST@JAV
A.SUN.COM>
09/06/01 01:32 AM
Please respond to
JavaPlugins
Hi Terry,
You can consult Deitel's how to prgoram java book, chapter 13 (i
remember). I hope u will get solution of ur problem
Thanx Burhan Sadi.
regards
Faisal Mirza.
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".
(Embedded image moved to file: pic31072.pcx)
Paintbrush