> Debugging with Eclipse's debugger is not practical, because the GUI
does
> of course not get redrawn if I step through the code.
> Is there a general solution to this problem?
I would write a small static method which walks the component hierarchy
and prints out the necessary information. Alternatively, if you have a
scriptable debugger, you can do all the printing in the debugger (I am
not aware of any scriptable debugger, but haven't looked lately).
Oh, and I would have a serious word with the original author of the
code, for following the ill advice of heavily nesting components. Maybe
you are better off re-implementing the GUI from scratch?
/Thomas
Daniel Schneller - 24 Feb 2004 12:34 GMT
> I would write a small static method which walks the component hierarchy
> and prints out the necessary information.
Right. I will try that. I figured it out for this one case at hand
manually, but this still is not satisfactory. As soon as I find some
time I will look further into it.
> Oh, and I would have a serious word with the original author of the
> code, for following the ill advice of heavily nesting components. Maybe
> you are better off re-implementing the GUI from scratch?
Hehe :) I would agree with you were I not at least in a way the author
of that code. We are using a framework here that incorporates a GUI
designer that I used to create the GUI. Normally I would not use such a
tool for most tasks, but it has some features to tie the UI elements to
business logic and generates code for that, too.
But anyway it would be somewhat helpful to be able to visually grasp the
stacking structure in order to simplify the design in a refactoring cycle.
Thanks,
Daniel
> I am currently trying to debug an existing swing application. What I am
> basically looking for is some sort of tool or method to find out, how
> panels are stacked.
take a look at JGoodies.com and forget panels stacking.
____________
http://reader.imagero.com the best java image reader.
Daniel Schneller - 24 Feb 2004 12:36 GMT
> take a look at JGoodies.com and forget panels stacking.
*sigh*
Would love to, but cannot do so without changing a whole business
application framework which is not really what I had in mind :) (and
which is not mine anyways).
Daniel