P
P
Pavel Subbotin2021-02-01 01:03:47
Java
Pavel Subbotin, 2021-02-01 01:03:47

Why is JMenuBar and UIManager bugged?

Guys, in general, I had a problem with the fact that when changing the UIManager, JMenuBar is bugged. Here are all the screenshots:
Before changing the theme:
601728bbd4d39651037105.png
After:
601728c7c191a884379766.png
That is, when, after changing the theme, I again click on one of the buttons ("File", "Editing", "About"), something appears that looks like a gray square under the "Edit" button.

Change themes with this command:

UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question