Search:

Type: Posts; User: copeg

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    2,674

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

    Try packaging your application and running it on a different computer. Using getResource allows you to package the app and images into a single jar. Relying on full paths is not very portable from...
  2. Replies
    10
    Views
    2,674

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

    The JVM most likely cannot find the image because it isn't where you said it is. In your first code listing, try using the full path to the image.
Results 1 to 2 of 2