aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Displaying an image issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Displaying an image issue" Watch "Displaying an image issue" New topic
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
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
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: 19541
    
  16

Abder-Rahman Ali, please BeForthrightWhenCrossPostingToOtherSites


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying an image issue
 
Similar Threads
Display a JPEG
Menu Problems
one click and the whole ROW will be selected
show multiple image Using Jlist
How to load an image to display