JInternalFrame on Windows XP - Performance
I noticed that JInternalFrame's Windows L&F implementation sets the opaque property of JInternalFrame to false in case it is running in XP environment. This is probably done to get rounded borders on JInternalFrame. However, as a side effect when a new frame is openend or existing frames are activated or moved, most of the other internal frames are completely redrawn. Even in case the end result is such that the top most frame obscures other frames. The result is that new frames appear to take lot of time to paint in case there are other frames open. The performance degrades with number of existing frames.
Is there a way to workaround this problem? Is it possible to modify the behaviour such that only the top corners are redrawn and not the entire frames to achieve the round borders?
Refer to com.sun.java.swing.plaf.windowsWindowsInternalFrameUI for details:
xp == null? Boolean.TRUE : Boolean.FALSE);