How can I change background image in JFrame using JButtons? -


i want change image background of jframe using button. know how use jframe , jbutton.

you should add following code in button action listener

setcontentpane(new jlabel(new imageicon("c:\\users\\computer\\downloads\\colorful design.png"))); 

Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

html - Not able to access next element of an array javascript -