The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Debugging Swing
Subject:  Good stuff
Date:  2007-08-30 16:06:56
From:  prunge


Nice - very useful code for Swing developers.

The tracing event queue initialization code could even be put into an instrumentation agent and we wouldn't have to change our own code at all, just add a VM command line argument:

public class SwingTraceAgent
{
    public static void premain(String agentArgs, Instrumentation inst)
    {
        Toolkit.getDefaultToolkit().getSystemEventQueue().push(
    new TracingEventQueue());
    }
}

java -javaagent:swingtracer.jar ...


 Feed java.net RSS Feeds