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.
cuckoo
0
Newbie Poster
Recommended Answers
Jump to Posthi everyone,
Put a JLabel on your window.
try thisImageIcon 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 windowThe ImageIcon class has functions …
All 3 Replies
freesoft_2000
9
Practically a Master Poster
cuckoo
0
Newbie Poster
Phaelax
52
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.