How to debug a swing UI?

最后都变了- 提交于 2021-02-07 14:22:19

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!