I'm using the Java Plugin for IE, which of course does support swing.

I'm still investigating the problem and hope to post an example applet
that shows the problem soon.

-Lee

-----Original Message-----
From: Chee Ket Yung [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 4:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA2D] Exception when setting JButton icon at runtime


Hi;

Does IE or Netscape support the javax.swing package that came in since
JDK1.2 ?

Chee

----- Original Message -----
From: "J. Lee Dixon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 10:32 PM
Subject: [JAVA2D] Exception when setting JButton icon at runtime


> In my code, I construct a JButton using the empty constructor, then I
> set the Icon for my JButton at runtime.  I can run my code as an
Applet
> and as an application.  When run as an application it works fine, but
> when I run it as an applet in IE I get the following in my Java
Console:
> (I am running Java 1.3)
>
> Exception occurred during event dispatching:
> java.lang.NullPointerException
>         at
> javax.swing.plaf.metal.MetalLookAndFeel.getControlDarkShadow(Unknown
> Source)
>         at javax.swing.plaf.metal.MetalUtils.drawFlush3DBorder(Unknown
> Source)
>         at javax.swing.plaf.metal.MetalUtils.drawButtonBorder(Unknown
> Source)
>         at
> javax.swing.plaf.metal.MetalBorders$ButtonBorder.paintBorder(Unknown
> Source)
>         at javax.swing.border.CompoundBorder.paintBorder(Unknown
Source)
>         at javax.swing.JComponent.paintBorder(Unknown Source)
>         at javax.swing.AbstractButton.paintBorder(Unknown Source)
>         at javax.swing.JComponent.paint(Unknown Source)
>         at javax.swing.JComponent.paintWithBuffer(Unknown Source)
>         at javax.swing.JComponent._paintImmediately(Unknown Source)
>         at javax.swing.JComponent.paintImmediately(Unknown Source)
>         at javax.swing.RepaintManager.paintDirtyRegions(Unknown
Source)
>         at
> javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
> Source)
>         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
>
>
> J. Lee Dixon
> SAIC - Celebration, FL
> 407-566-1438
> [EMAIL PROTECTED]    AOL: LeeOrlando
>
>
========================================================================
===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA2D-INTEREST".  For general help, send
email to
> [EMAIL PROTECTED] and include in the body of the message "help".

========================================================================
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA2D-INTEREST".  For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to