How to insert an image into a GUI?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2004
Posts: 15
Reputation: axiss is an unknown quantity at this point 
Solved Threads: 0
axiss's Avatar
axiss axiss is offline Offline
Newbie Poster

How to insert an image into a GUI?

 
0
  #1
Sep 3rd, 2004
Does anyone know how to insert a .jpeg into the JPanel of a GUI window?
Me fail English?
Unpossible
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: How to insert an image into a GUI?

 
0
  #2
Sep 3rd, 2004
hi everyone,
See this thread below
http://www.daniweb.com/techtalkforums/thread10088.html

I hope this helps you

Yours Sincerely

Richard West
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 54
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: How to insert an image into a GUI?

 
0
  #3
Sep 4th, 2004
You can read about multimedia in java.sun.com... Anywayz I give you the base idea:
  1. ImageIcon image = new ImageIcon("image.jpeg");
  2. jpanel.add(image, BorderLayout.North);
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC