Sometimes the menu doesn't close properly after clicking somewhere, and it no longer responds to keyboard input. There is a similar bug in Jacareto, but I haven't yet found anyone else who is affected by this problem.
Jacareto bug: https://sourceforge.net/tracker/?func=detail&aid=2847602&group_id=138313&atid=740403
By trial and error, I found out that removing an invokeLater() call in ScreenPanel helps.
Before:
public void refreshLookAndFeel() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
lookAndFeelManager.applyLookAndFeel(ScreenPanel.this);
ComponentAutosizer.get().autosize(getComponents());
}
});
}
After:
public void refreshLookAndFeel() {
lookAndFeelManager.applyLookAndFeel(ScreenPanel.this);
ComponentAutosizer.get().autosize(getComponents());
}
However, the problem still occurs from time to time.
The menu always stays open after insering a button to the screen.