如何调试Swing UI? [英] How to debug a swing UI?

查看:85
本文介绍了如何调试Swing UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Swing屏幕,我想调试它正在使用哪些服务或框架.早些时候,我从事Web应用程序的工作,在那里我们在firefox mozilla中使用了FireBug,以查看UI中如何使用事物并导航至服务.我是新手,想弄清楚这个新应用程序是如何使用它的.

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.

推荐答案

这是

Here is the debug swing is Debugging Swing Applications with the UI Debugger it can be quite useful to debug Swing related application.

由NetBeans提供的另一个 Visual Debugger .

Another one Visual Debugger provided by NetBeans .

swinginspector 是Java Swing/AWT用户界面分析和调试工具,功能以及类似的Firebug,强大的Swing/AWT用户界面分析和调试功能.

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.

我发现了另一件事

当您的JFrame可见时,按CTRL + SHIFT + F1并查看控制台组件和布局的树层次结构的输出.

When your JFrame is visible press CTRL+SHIFT+F1 and see the console output for the tree hierarchy of components and layouts.

这篇关于如何调试Swing UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆