iTEgg
iTEgg

Reputation: 8342

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?

Upvotes: 3

Views: 5617

Answers (2)

Masudul
Masudul

Reputation: 21961

JDK 1.7 brings you method setType. Use following method.

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

Upvotes: 16

Itay Maman
Itay Maman

Reputation: 30723

You need to use a JDialog instead of a JFrame

Upvotes: 6

Related Questions