简体   繁体   中英

How to minimize an undecorated JFrame?

I want to minimize a JFrame ?

Note: JFrame is set undecorated to true in Netbeans.

How to set minimize action for JFrame when clicked a JButton?

Not sure why you want to do this. The frame already has to button to click. Why do you need another button?

Anyway to change the state of the frame:

frame.setExtendedState( JFrame.ICONIFIED );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM