J
Jared MacDonald
I would like to purchase Excelsior Jet, because the performance
improvement for my Swing application does look extremely promising.
But I'm having some issues with the trial version. When I ran a small
sample Swing app that I wrote, I got a NullPointerException. After
about three iterations of adding System.err.println's, I narrowed it
down to one line:
panel.add(button, "0 3 f c");
The layout manager for this panel is an instance of TableLayout ("f c"
means "fill along the x-axis, center along the y-axis"). When I
changed the line to
panel.add(button, "0 3");
it worked fine, and then bombed on the next occurrence of "... f c").
This caused me to look into the code TableLayout, and how it handles
such constraints, and I did find the rather suspect design choice to
parse everything as integers, catch the NumberFormatException, and
then parse them as the expected set of letters -- but regardless, the
point is that this code works fine running as a standard Java program,
but throws NullPointerException as a Jet-compiled EXE.
Has anyone else encountered this issue or similar ones? I'd appreciate
any feedback whatsoever. Thanks,
Jared
improvement for my Swing application does look extremely promising.
But I'm having some issues with the trial version. When I ran a small
sample Swing app that I wrote, I got a NullPointerException. After
about three iterations of adding System.err.println's, I narrowed it
down to one line:
panel.add(button, "0 3 f c");
The layout manager for this panel is an instance of TableLayout ("f c"
means "fill along the x-axis, center along the y-axis"). When I
changed the line to
panel.add(button, "0 3");
it worked fine, and then bombed on the next occurrence of "... f c").
This caused me to look into the code TableLayout, and how it handles
such constraints, and I did find the rather suspect design choice to
parse everything as integers, catch the NumberFormatException, and
then parse them as the expected set of letters -- but regardless, the
point is that this code works fine running as a standard Java program,
but throws NullPointerException as a Jet-compiled EXE.
Has anyone else encountered this issue or similar ones? I'd appreciate
any feedback whatsoever. Thanks,
Jared