Board index » jbuilder » How to load images into the code ...
How to load images into the code ...
2005-07-01 12:42:42 AM
I have downloaded and start to test a PrinterFrameowrk set of classes
that I found on JavaWorld.
In the PFPrintPreview class the image was loaded as:
firstPage.setIcon (new ImageIcon (getClass ().getResource
I added the directory "images" and put the gifs there.
But JBuilder could not find the images.
I then tried the method that worked on earlier use:
firstPage.setIcon (new ImageIcon
How come that it didn't found them on the top code?