![]() |
use non java files in jar
i have an image called left.gif and i use as so:
:
ImageIcon left = new ImageIcon("left.gif"); |
Try:
:
ImageIcon left = new ImageIcon(getClass().getResource("left.gif")); |
:D thank you it works:D
|
| All times are GMT -5. The time now is 11:24 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC