So how would I get it to work on both my computer and another computer? Would I have to import a jar file?
:confused:
Type: Posts; User: javapenguin
So how would I get it to work on both my computer and another computer? Would I have to import a jar file?
:confused:
Do you have to do getClass().getResource(Image title)?
Why not just
ImageIcon icon = new ImageIcon("Poppy.jpg");
?
As long as the file is in the same directory as your program.