Image help with Java.

BigCheeZ2000

Member
Jun 14, 2003
72
0
0
I am currently working on a little java project where you can input an image and this program will make everythign black and white except for the color you choose. I have the color "extraction" done but I am having problems with the UI. I want a side panel where the user can tab between the original picture and the modified pic. The modified pic is in a buffered image object.

The question is: What is the easiest way to put a picture in the program. I have a JPanel where I want the picture to be located at. I have looked at ImageIcon but that hasn't been so successful. Thanks in advance.
 

znaps

Senior member
Jan 15, 2004
414
0
0
Check out the Java tutorial at java.sun.com and look at the MediaTracker examples - that should give you plenty of code you can copy.