简体   繁体   中英

Remove a JFrame from taskbar in Java

I did a quick topic look, but did not find something similar.

My query is: how can I prevent a child window appearing on the Windows taskbar when it is shown?

JDK 1.7 brings you method setType. Use following method.

JFrame.setType(javax.swing.JFrame.Type.UTILITY)

您需要使用JDialog而不是JFrame

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