JFrame with insets set and a component added to it, is not painted properly (on the first time)and shows the desktop background when the test is launched.
Steps to reproduce;
1)Comile and execute the attached test with build mustang b59.
$JAVA_HOME/bin/java FramePaintBug
Observed:JFrame is not painted properly.
Minimise and Maximize the JFrame back and the repaint causes the JFrame to be rendered correctly.
2) Execute the test with the command line system property set as swing.handleTopLevelPaint=true
$JAVA_HOME/bin/java swing.handleTopLevelPaint=true FramePaintBug
Observed:JFrame is not painted properly.
Minimise and Maximize the JFrame back and the repaint causes the JFrame to be rendered correctly.
3) Execute the test with the command line system property set as swing.handleTopLevelPaint=false
$JAVA_HOME/bin/java swing.handleTopLevelPaint=true FramePaintBug
Now the JFrame is painted PROPERLY.
This is observed since build b32 and is probably a regression to the gray rect fix 4967886.