问题
I have a Swing screen and I want to debug which services or frames are being used by it. Earlier I have worked on Web apps and there we used used FireBug in firefox mozilla to see how things used in UI and navigate to services. I am new to swing and want to find out how this new application is using it.
回答1:
Here is the debug swing is Debugging Swing Applications with the UI Debugger it can be quite useful to debug Swing related application.
Another one Visual Debugger provided by NetBeans .
The swinginspector is a Java Swing/AWT user interface analysis and debugging tools, features, and similar firebug, powerful Swing/AWT user interface analysis and debugging function.
Here another thing i found
When your JFrame is visible press CTRL+SHIFT+F1 and see the console output for the tree hierarchy of components and layouts.
来源:https://stackoverflow.com/questions/33162977/how-to-debug-a-swing-ui