Hi, i am new to this forum.
Have spent many hours on-line and looking at the API for JDI and cannot seem to find an answer to my question.
I have been looking at JDI and have so far been able to access all the local variables and get their values. However, the value of a Swing component is a Swing Component.
For example, if i call
StackFrame.getValue(“a Swing component”)
i get “javax.swing.JPanel(id=655)”
Is there any method for accessing the values for the JPanel ie height, width etc.
For my 4th year project at uni, i have decided to try and build an exploded view of Gui's built in swing. Obviously the first step here is to be able to analyse the target code. Reflection is useless to me as you are unable to access local variables, which is necessary.