Loading images

Reply

Join Date: Nov 2004
Posts: 2
Reputation: cuckoo is an unknown quantity at this point 
Solved Threads: 0
cuckoo cuckoo is offline Offline
Newbie Poster

Loading images

 
0
  #1
Nov 5th, 2004
hi,
i am doing a project on steganography,and here ,i've gotta browse and then display images in the window.i dont know how to get the image as it is an application and not an applet.hence,i cant use getImage().plz help me.
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: 7
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: Loading images

 
0
  #2
Nov 5th, 2004
hi everyone,

Put a JLabel on your window.
try this

ImageIcon i = new ImageIcon("file");
JLabel l = new JLabel(i);

To change the image during runtime have an option that can
reload a new image and repaint the label and window

The ImageIcon class has functions to set the image
See Java's Image Icon class for a more detailed description

I hope this helps you

Richard West
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 2
Reputation: cuckoo is an unknown quantity at this point 
Solved Threads: 0
cuckoo cuckoo is offline Offline
Newbie Poster

Re: Loading images

 
0
  #3
Nov 10th, 2004
i tried with the imageicon but i guess image icon works only for .gif and .jpg.anyways,4get abt it,as i have an even more difficult problm.i have been given the c code of steganographyand i'm supposed to convert it to java.it has many pointers and fseek functions.i'll giv the code,could u help me out converting to java.

could i send u through my yahoo account ,plz it is very important.plz
it is actually a zipped file.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: Loading images

 
0
  #4
Nov 10th, 2004
1.3 or 1.4 allowed for png format as well.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC