please help me.
how to put an image icon in my project...
i tried this:
Image imgicon = new Image(shellSecurity.getDisplay(), "ICON2.jpg");
shellSecurity.setImage(imgicon);
and my error is this
Exception in thread "main" org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: ICON2.jpg (The system cannot find the file specified))
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoa der.java:159)
at org.eclipse.swt.graphics.ImageDataLoader.load(Imag eDataLoader.java:26)
at org.eclipse.swt.graphics.ImageData.<init>(ImageDat a.java:377)
at org.eclipse.swt.graphics.Image.<init>(Image.java:7 35)
at ptime.pos.system.ptime_inteface.<init>(ptime_intef ace.java:43)
at ptime.pos.system.ptime_main.main(ptime_main.java:1 3)
Caused by: java.io.FileNotFoundException: ICON2.jpg (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.eclipse.swt.internal.Compatibility.newFileInpu tStream(Compatibility.java:182)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoa der.java:156)
... 5 more
what will i do?