Search Results

Search found 1 results on 1 pages for 'user295744'.

Page 1/1 | 1 

  • Java applet icon doesn't show

    - by user295744
    I have a java applet where I've changed the image icon that appears in the top left corner of the window. The code I use is this: Toolkit kit = Toolkit.getDefaultToolkit(); Image frameIcon = kit.getImage("src/myapp/resources/logo.png"); getFrame().setIconImage(frameIcon); Everything works fine until I deploy the applet to a standalone jar. In this case the icon that shows is the default icon, as if the code couldn't find the image. But the image is inside, although it is in the folder: myapp/resources/ What am I doing wrong here? Is this some weird java bug?

    Read the article

1