[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Problems With Image Display  XML
Forum Index » GUI Development
Author Message
gioravered

Newbie

Joined: 06/24/2010 07:59:25
Messages: 1
Offline

Hi all.
I'm trying to create an Image slide show.
for those of you who knows "Objects First" book, I'm using the "Image Viewer" project there.

I've created a JPanel then...

So, I've created a new frame, and place an "Image Panel" object which is a Class from the book
"public class ImagePanel extends JComponent"

The class basically set up a place to put a Buffered Image object.

The I've Added it to the JPanel andall is ok.

The problem starts when I'm trying to add photos to the Panel..
because I'm using pack(), the Window's changing it's size to the size of the new photo, but the picture is not displayed..

here is the code.. I hope I managed to explain myself...

Oh, also "ImageFileManager" is a class which checks if the file is a photo.




If someone is willing to take a look and tell me what's wrong I will appreciate it so much.

thanks,

Giora.

This message was edited 1 time. Last update was at 06/24/2010 08:22:07

 
Forum Index » GUI Development
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle