944,117 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2678
  • Java RSS
Nov 5th, 2004
0

Loading images

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cuckoo is offline Offline
2 posts
since Nov 2004
Nov 5th, 2004
0

Re: Loading images

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
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Nov 10th, 2004
0

Re: Loading images

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cuckoo is offline Offline
2 posts
since Nov 2004
Nov 10th, 2004
0

Re: Loading images

1.3 or 1.4 allowed for png format as well.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Images
Next Thread in Java Forum Timeline: what is the effect of using constructors in the program?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC