java - how can i increase/decrease size of window on click event? -
i developing simple swing app in have main window 3 buttons. when click on first button opens new window of (200,200) dimension. when click on second button, newly opened window's height should increased , when click on third button height should decreased. can me code....
thanks in advance.
you following on newly opened windows want resize:
jframe fr=getnewlyopenendwindowreference(); // reference jframe fr.setsize(fr.getsize().getwidth() + 10,fr.getsize().getheight() + 10); fr.repaint();
this should increase size of jframe length , widthwise 10 pixels per call.
Comments
Post a Comment