Search:

Type: Posts; User: javapenguin

Search: Search took 0.20 seconds.

  1. Re: How to display a button with an image on it?

    So how would I get it to work on both my computer and another computer? Would I have to import a jar file?

    :confused:
  2. Re: How to display a button with an image on it?

    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.
Results 1 to 2 of 2