Good afternoon.
How can I prevent this menu from being displayed when I press the frame icon?
Thank you very much.
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)).