J
Jim Crowell
Systems:
I am using Eclipse 2.1.3 on a Win XP platform to develop a Java 1.3.2
Stand Alone App.
The app extends JFrame that then host a set of TAB's designed to
provide a user friendly Form Centric App.
The app is working well but a new anomaly has appeared.
In my main class I instance the app as follows:
myApp app = new MyApp(args[0] ...);
I follow that line with a "app.setVisible(true);" command.
The problem:
About 20 % of the time there is no return from the 'setVisible' request
and the JFrame of the app is not shown.
I used the debugger to follow the 'setVisible' process and deduced that
the hang up was in the validate method. Going in there gets me into
things that I just do not understand.
I then changed the 'app.setVisible(true);' command to 'app.validate()'
and placed sysout command before and after. Each time my app hangs up I
never see the "Return from 'validate' printout.
Comment:
Over time my biggest problem with Java has been focus problems.
I am looking to produce a stable, robust stand alone app but keep
running into problems similar to this one.
Over the last few months I have written a precise set of requirements
["Focus Change Event Processing"] and unit test to define focus rules.
I was finally confident that I had taken control of the Java
environment until the above problem appeared.
Question:
Any ideas on what can be causing the above irreguality or what else I
can be doing to get control over this environment?
I do not understand peers very well.
Is there a chance that the problem is 'peer' related?
I have a Mac OS X [panther] system that I plan to test this app on.
Should I run the test on that computer to determine if the problem is
platform related.
That is a bit of a tangent from my planned development process but
could be done if you think it will aid in solving this problem. Please
advise!
FYI:
I have used 'sysout' to write the following 'app' instance parameters
following the return from the above 'new' command:
peer Name = sun.awt.windows.WFramePeer
'app.isValid' = false
'app.isVisible' = true
The above output is the same for the working and the hang up
executions.
Thanks
Jim C.
I am using Eclipse 2.1.3 on a Win XP platform to develop a Java 1.3.2
Stand Alone App.
The app extends JFrame that then host a set of TAB's designed to
provide a user friendly Form Centric App.
The app is working well but a new anomaly has appeared.
In my main class I instance the app as follows:
myApp app = new MyApp(args[0] ...);
I follow that line with a "app.setVisible(true);" command.
The problem:
About 20 % of the time there is no return from the 'setVisible' request
and the JFrame of the app is not shown.
I used the debugger to follow the 'setVisible' process and deduced that
the hang up was in the validate method. Going in there gets me into
things that I just do not understand.
I then changed the 'app.setVisible(true);' command to 'app.validate()'
and placed sysout command before and after. Each time my app hangs up I
never see the "Return from 'validate' printout.
Comment:
Over time my biggest problem with Java has been focus problems.
I am looking to produce a stable, robust stand alone app but keep
running into problems similar to this one.
Over the last few months I have written a precise set of requirements
["Focus Change Event Processing"] and unit test to define focus rules.
I was finally confident that I had taken control of the Java
environment until the above problem appeared.
Question:
Any ideas on what can be causing the above irreguality or what else I
can be doing to get control over this environment?
I do not understand peers very well.
Is there a chance that the problem is 'peer' related?
I have a Mac OS X [panther] system that I plan to test this app on.
Should I run the test on that computer to determine if the problem is
platform related.
That is a bit of a tangent from my planned development process but
could be done if you think it will aid in solving this problem. Please
advise!
FYI:
I have used 'sysout' to write the following 'app' instance parameters
following the return from the above 'new' command:
peer Name = sun.awt.windows.WFramePeer
'app.isValid' = false
'app.isVisible' = true
The above output is the same for the working and the hang up
executions.
Thanks
Jim C.