Avoid Deploying menu from icon in JFrame

1

Good afternoon.

How can I prevent this menu from being displayed when I press the frame icon?

Thank you very much.

    
asked by Dacoso 14.09.2016 в 23:14
source

1 answer

0

What you're looking for I think is impossible, but this can help you, it depends on what you want to do:

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

This command hides the top bar (including the icon, the title, and the maximize and minimize buttons (NOT the close)).

    
answered by 04.10.2016 в 12:16