Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swing UI layout analysis

I am working on extending an application which has a Java Swing GUI. I have extended the business logic and added the required functionality but now I wanted to improve the UI. I have never worked with swing before and the code is not easy to read at all.

Is there any way to analyse/identify the UI components while the application is running? I am using IntelliJ as the IDE.

like image 288
Ubaier Bhat Avatar asked Oct 26 '25 20:10

Ubaier Bhat


1 Answers

Press CTRL+SHIFT+F1 while your program is running to see a dump of the Swing container hierarchy. Compare it to the listings mentioned here or here.

like image 120
trashgod Avatar answered Oct 28 '25 11:10

trashgod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!