JFrame Picture in NetBeans as Background -


i'm done coding program i'm having difficult time adding picture jframe (i've done in code without using graphic interface jpanel.

at moment i'm trying this, keeps giving me errors , wont display picture. (javaoskartid package, hourglassone.jpeg intended picture)

thank response!

url urltoimage = this.getclass().getresource("javaoskartid/hourglassone.jpeg"); imageicon icon = new imageicon(urltoimage);


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -