But it doesn't work when I have a JFrame class create a new JFrame and then adding that JPanel to it. The window also becomes unresponsive but the code in the JPanel keeps running fine (I'm using a custom paint loop).
What is wrong? Also, when running from the JPanel it retains focus (as per isFocusOwner()) but not when running from the JFrame, even using requestFocus().
Minimal sample included as attachment. Help appreciated :)
[ATTACH]3842[/ATTACH]


Sign In
Create Account


Back to top









