G
Gertraud
I need some general hints on how to do Java maintenance - hopefully
you gurus out there can help a beginner.
I've "inherited" a non-trivial Java application (combination of
servlet and applet, swing, about 200 classes) and have to do
maintenance for it. So far I could always find out what's happening
using JSwat debugger and/or System.out.println.
But currently a problem baffles me. The application has an OK button,
which normally will behave as I want it to do: actionPerformed event
is called. In a certain situation this event will not be triggered. I
would assume, that instead some other event is triggered, which leads
to missing the "normal case" - but how can I find out, which other
event?
I have tried to put breakpoints in JSwat in all situations which
seemed marginally plausible - none of them was called. I have looked
for better tools -SpyJ and OMD sounded promising, but I couldn't get
them to work with my application. I tried to put in System.out.println
on some interesting points, but since it is not possible to instrument
all the code, I didn't hit the right ones.
What steps do you take to narrow in on problems in Swing applications?
How can I find out what events are/were triggered during my tests? Any
help is appreciated.
Thanks
you gurus out there can help a beginner.
I've "inherited" a non-trivial Java application (combination of
servlet and applet, swing, about 200 classes) and have to do
maintenance for it. So far I could always find out what's happening
using JSwat debugger and/or System.out.println.
But currently a problem baffles me. The application has an OK button,
which normally will behave as I want it to do: actionPerformed event
is called. In a certain situation this event will not be triggered. I
would assume, that instead some other event is triggered, which leads
to missing the "normal case" - but how can I find out, which other
event?
I have tried to put breakpoints in JSwat in all situations which
seemed marginally plausible - none of them was called. I have looked
for better tools -SpyJ and OMD sounded promising, but I couldn't get
them to work with my application. I tried to put in System.out.println
on some interesting points, but since it is not possible to instrument
all the code, I didn't hit the right ones.
What steps do you take to narrow in on problems in Swing applications?
How can I find out what events are/were triggered during my tests? Any
help is appreciated.
Thanks