I've developed an applet that uses the Java 1.3.0_02 Plugin so that I could
use Swing 1.2 and have developed an applet that loads in a list of
thumbnailed images over http using Applet.getImage(URL, String).  The user
can select an image and it loads a larger version of this image and allows
you to select a scale factor from a dropdown box.

The problem that I'm having is when ever the user selects a factor other
than 100% it causes the Internet Explorer to crash.  The error that occurs
is an 'Application Error' saying that 'The instruction at "0x500d207b"
referenced memory at "0x00000018".  The memory could not be "read".'

I'm using a JPanel for the scaled image and implementing
paintComponent(Graphics g) to handle the scaling of the image.  The
paintComponent method uses the drawImage(Image, int, int, int int,
ImageObserver) method of the Graphics object to perform the scaling.  I've
yet to test this scaling functionality out of the application environment
and in a simple test application.  That's one of the next things I plan on
doing.  What I was wondering is if anybody else experienced this sort of
behaviour when performing a scale operation in an applet while using the
Java Plugin and if so how they overcame the issue.

Regards
Darryl Morgan
-------------------------------
Tangent Systems Australia
Senior Developer
Ph:             +61 3 9809 1311
Fax:            +61 3 9809 1322
eMail:  mailto:[EMAIL PROTECTED]

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to