Monday 15 April 2013

How to detect repainted areas in a Java application (Windows OS)? -


I am debugging graphics updates in Java applications under Windows 8.

Mac users updated the Flash areas in real time to that flash. It allows repetition frequency and false updates to be set-sometimes only one color is required in a small area, but the entire window is repainted again. The application also shows areas that receive an update with unchanged content.

Is there a similar Windows debugging tool that allows me to detect recycled areas?

In the meantime I found, a swinglabs subproduct with BSD license. After adding jxlayer-3.0.4.jar to my project library, I was able to animate repaints. If you have a JFrame and Zeppel, use it:

  JFrame frame = ...; Zeppel panel = ...; If (DEBUG_REPAINT) {JXLayer & lt; JPanel & gt; Layer = new JXLayer & lt; & Gt; (Panel); DebugRepaintingUI DP = new debugging UI (50); // 50ms Delay Layer.SetUI (DP); Frame.setContentPane (Layer); } Other {frame.setContentPane (panel); }}   

By default DebugRepaintingUI draws the converted area in XORMode, but I can customize the source to create a low-impact effect.

The problem in this approach is that it actually modifies the application, maybe someone has a better idea.

No comments:

Post a Comment