Hi there. I am having a problem with IE6.0 when I try to print a
screen. The program that I'm using uses JAVA & Javascripts extensively.
The problem is when I try to print one of the windows, IE locks up. The
only way I can recover is to end the task and shut down IE. Has anyone
else encountered this problem before? Thanks!
I forgot to say that when I look at the Java Console and try to print
one of the messages that displays on the console is:
java.lang.IllegalArgumentException: Width (2) and height (0) cannot
be
<= 0
I don't do Java, so I have no idea what it's telling me.
Thanks for your help.
Tubbsy
Rhino - 23 Mar 2005 13:55 GMT
So you're asking us to fix a Java program without even a hint of what the
source code contains because you didn't write it? Not only that but you
haven't given us even the tiniest hint of what the program is doing? That's
a pretty tall order.
All I can suggest from what you've told us is that the Java code is being
given a width and height for something - I'm guessing a GUI component of
some kind - and the value that it is being given isn't valid. The values it
is getting are calling for a component that is 2 pixels wide and 0 pixels
high which isn't valid for this component. I'm not surprised that the Java
code doesn't like this.
This problem may be easily solved *if* you are actually giving it these
numbers explicitly; in that case, just give it bigger numbers, say 400 and
200 respectively for starters and see if that helps. But if you aren't
giving it the numbers explicitly, I don't think there is anything anyone can
do to help you unless you can get your hands on the source code and post it
here.
Rhino
Hi there. I am having a problem with IE6.0 when I try to print a
screen. The program that I'm using uses JAVA & Javascripts extensively.
The problem is when I try to print one of the windows, IE locks up. The
only way I can recover is to end the task and shut down IE. Has anyone
else encountered this problem before? Thanks!
I forgot to say that when I look at the Java Console and try to print
one of the messages that displays on the console is:
java.lang.IllegalArgumentExcep?tion: Width (2) and height (0) cannot
be
<= 0
I don't do Java, so I have no idea what it's telling me.
Thanks for your help.
Tubbsy