How to debug Java Swing Layouts

前端 未结 3 1045
暖寄归人
暖寄归人 2020-12-01 17:02

There is one method which prints layout information for particulat components. I knew one method is there but I forgot the name.

When you call that method for Swing

3条回答
  •  北海茫月
    2020-12-01 17:47

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

提交回复
热议问题