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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -