Is there a way to find out the form class using eclipse?

I am working on a large undocumented application written in swing / awt. I have to make changes to it, and I need to find out to which class the form belongs when I open it. Is there a way to do this through eclipse?

For example: I open the application and do something with the application, so some kind of frame opens. How to find out the class of this form? Can this be done through eclipse?

I know that I can trace the logic, but this is a very time-consuming and largely inefficient process, pieces of logic are either in jar or obfuscation files.

Thanks.

+4
source share
2 answers

To find out how a given Swing frame is assembled, I found Swing Explorer very useful.

https://swingexplorer.dev.java.net/

After installing the Eclipse plugin, note that you need to “Run as →” to invoke Swing Explorer properly.

+9
source

I don’t know if this is what you need, but maybe you should try to search (MainMenu → Search) the entire project for a specific window title (String) that matches that particular window.

+7
source

Source: https://habr.com/ru/post/1335316/


All Articles