Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How can I import images into my program using JFrame?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mariomania88




PostPosted: Tue May 10, 2005 6:11 pm   Post subject: How can I import images into my program using JFrame?

^topic

For further clarification, I'm making a database program, and I want the user to be able to import pictures. If you could give me a sample program with the code in it, or just the code, I would be very happy.

- mariomania88
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Tue May 10, 2005 6:17 pm   Post subject: (No subject)

what do you mean by "import" images?
mariomania88




PostPosted: Tue May 10, 2005 6:21 pm   Post subject: (No subject)

sorry for not being clear

i mean to put images on the panel

lets say i have an image of a car called "car.gif", and I wanted to put it on the screen

something like that

eventually I want a function where the user can import their own images
JackTruong




PostPosted: Tue May 10, 2005 9:31 pm   Post subject: (No subject)

Chris, look at the constructor for JLabel and figure something out. If you can't find out how, I'll give you a hand in class.

I already got this working.

Hope you know who this is.
mariomania88




PostPosted: Tue May 10, 2005 10:17 pm   Post subject: (No subject)

JackTruong wrote:
Chris, look at the constructor for JLabel and figure something out. If you can't find out how, I'll give you a hand in class.

I already got this working.

Hope you know who this is.


jack, the name gives it away (and the fact that you said that was your username in class today)
JackTruong




PostPosted: Tue May 10, 2005 11:00 pm   Post subject: (No subject)

Good.

Did you look at the constructors for JLabel?
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: