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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -