How to debug Java Swing layout

There is a way to print layout information for specific components I know one way is there, but I forgot the name

When you call this method for a swing component, the layout information of the component will be displayed like the dumpstacktrace call

Any ideas? What is the name of that method? I read the book in a book, but I forgot Or let me know some good ways to debug Java Swing layout

Solution

The visual tool for debugging swing is swing explorer, which also has NetBeans and eclipse plug-ins It allows you to browse the swing component tree and is very useful

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>