| Author |
Displaying an image issue
|
Abder-Rahman Ali
Ranch Hand
Joined: May 22, 2008
Posts: 138
|
|
Hello,
I have created a GUI with the menus "File" and "Help".
"File" has a menu item, "Open Image...".
I'm just having an issue DISPLAYING an image at the GUI.
I have my "Open Image..." menu item as follows:
And, the code that is responsible for displaying the image is:
And, finally the code that displays the creates and shows the GUI is as follows:
Thanks.
|
 |
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
|
posted

0
|
where do you add the picturePanel?
don't use paint() with swing components - use paintComponent()
|
 |
Abder-Rahman Ali
Ranch Hand
Joined: May 22, 2008
Posts: 138
|
|
Michael Dunn wrote:where do you add the picturePanel?
don't use paint() with swing components - use paintComponent()
Yes, exactly, this is the case.
How do I add the "PicturePanel" to my GUI? This is the the problem I'm facing.
Thanks.
|
 |
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
|
posted

0
|
deleted
I see I've just wasted my time repeating what was already posted here
http://forums.sun.com/thread.jspa?threadID=5425648&tstart=0
another added to the ignore list
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Abder-Rahman Ali, please BeForthrightWhenCrossPostingToOtherSites
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Displaying an image issue
|
|
|