help with open pics to jbutton in jar [message #208095] |
Sun, 29 April 2007 07:51 |
Eclipse User |
|
|
|
Originally posted by: Emrah.Mutlu.stud.iu.hio.no
i have made a folder in my project called pictures,it`s in the same folder
as src,bin,.classpath,.project.when i makeing a fat jar(Buil Fat jar),i
find the main class,under Class path the 2 checkbox is checked and i click
next,Select Files for fat jar,all classes i checked but not my picture
folder,so i click Add Dir..i found my pictures folder and add it to fat
jar,at last i click finished.and the fat jar is created.when i import it
in eclipse 3.2 i can see that the pictures are in the fat jar.but it not
showing the pictures on my jbutton.
ImageIcon iconNew = new ImageIcon("pictures/connection.jpg");
button = new JButton(iconNew);
can anyone please help me??i need fat jar because i am using easyIO.jar in
my project,and with fat jar i can add other jars.or is it any other jar
program that ake the same thing?
|
|
|
Powered by
FUDForum. Page generated in 0.07986 seconds