2

In web applications that run with Tomcat from Eclipse, for example, we can right-click on an element in the page and inspect it (with Firebug, for example), and we can see the element's ID, class, etc. If we have a JAVA Swing application that we run from Eclipse (right-click project ==> debug as ==> eclipse application), can we do the same thing so that we can see which method, for example handles that element, or whatever? Can we inspect a JAVA Swing element as it runs (from Eclipse)? I already checked swing-inspector, but I do not want it.

Thank you

Dimitrios Efthymiou
  • 535
  • 1
  • 5
  • 17
  • I don't think there's an exact equivalent to tools like Firebug for Swing. Don't forget the fact that the DOM and some tree-like structure of panels and other elements in your Swing application are quite different by nature. – Priidu Neemre Apr 24 '13 at 20:32
  • If you want to inspect instances of Swing controls at runtime, keep a reference to them in your code and then do so with Eclipse's debugger. If your question is whether there is a pre-existing structure in a Java Swing application that is equivalent to the html DOM, the answer is no. – CBass Apr 24 '13 at 20:39
  • There's some good stuff [here](http://stackoverflow.com/q/6671021/261156). – Catalina Island Apr 25 '13 at 12:03

1 Answers1

0

I am sorry that I can not offer you a solution for Eclipse. If you can use Netbeans it includes a Visual Debugger feature. It is simple to use and it is integrated in Netbeans by default.