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
Post a Comment