Remove a JFrame from taskbar in Java

我们两清 提交于 2019-12-10 09:47:35

问题


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?


回答1:


You need to use a JDialog instead of a JFrame




回答2:


JDK 1.7 brings you method setType. Use following method.

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


来源:https://stackoverflow.com/questions/2694782/remove-a-jframe-from-taskbar-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!