🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11656

Re: Swing applets under Netscape 4.5

#11656
From: Vasudevan Srinivasan
Date: Thu, 15 Apr 1999 00:00
133 lines
4654 bytes
Hi,
Are you using the plug-in 1.1 for running the applet under NetScape 4.5? If not you have
to get the plug-in 1.1.1 (there is another version of plug-in - 1.1.2 - but thats for
jdk1.1.7B) from Sun's site.

You may also want to try with Netscape 4.51, this is supposed to run jdk1.1.6 vm (incl
swing) without the plugin. But, if you later move to the next version of jdk i dont
think NS or IE support it - you would have to use swing then.

hth,
Vasu

Ugo Landini wrote:

> I've developed a test swing applet with Jbuilder 2.01 (using included
> 1.1.6 borland jdk), and it works well in the AppletViewer, but Netscape
> (apparently it uses jdk 1.1.5) isn't able to run it correctly. At the
> end of this mail there is the Java console output.
> Any idea?
>
> Java console output:
>
> java.lang.Error
>
>   at java.lang.Throwable.<init>(Compiled Code)
>
> * at java.lang.Error.<init>(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUIError(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUI(Compiled Code)
>
>   at com.sun.java.swing.UIManager.getUI(Compiled Code)
>
>   at com.sun.java.swing.JButton.updateUI(Compiled Code)
>
>   at com.sun.java.swing.AbstractButton.init(Compiled Code)
>
>   at com.sun.java.swing.JButton.<init>(Compiled Code)
>
>   at com.sun.java.swing.JButton.<init>(Compiled Code)
>
>   at cgil.lomb.framework.test.AppletSwing.<init>(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> Code)
>
>   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
> Code)
>
>   at java.awt.EventDispatchThread.run(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code)
>
> UIDefaults.getUI() failed: no ComponentUI class for:
> com.sun.java.swing.JButton[,0,0,0x0,invalid,layout=com.sun.java.swing.OverlayLayout]
>
> java.lang.Error
>
>   at java.lang.Throwable.<init>(Compiled Code)
>
> * at java.lang.Error.<init>(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUIError(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUI(Compiled Code)
>
>   at com.sun.java.swing.UIManager.getUI(Compiled Code)
>
>   at com.sun.java.swing.JLabel.updateUI(Compiled Code)
>
>   at com.sun.java.swing.JLabel.<init>(Compiled Code)
>
>   at com.sun.java.swing.JLabel.<init>(Compiled Code)
>
>   at cgil.lomb.framework.test.AppletSwing.<init>(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> Code)
>
>   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
> Code)
>
>   at java.awt.EventDispatchThread.run(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code)
>
> UIDefaults.getUI() failed: no ComponentUI class for:
> com.sun.java.swing.JLabel[,0,0,0x0,invalid]
>
> java.lang.Error
>
>   at java.lang.Throwable.<init>(Compiled Code)
>
> * at java.lang.Error.<init>(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUIError(Compiled Code)
>
>   at com.sun.java.swing.UIDefaults.getUI(Compiled Code)
>
>   at com.sun.java.swing.UIManager.getUI(Compiled Code)
>
>   at com.sun.java.swing.JSlider.updateUI(Compiled Code)
>
>   at com.sun.java.swing.JSlider.<init>(Compiled Code)
>
>   at com.sun.java.swing.JSlider.<init>(Compiled Code)
>
>   at cgil.lomb.framework.test.AppletSwing.<init>(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> Code)
>
>   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
> Code)
>
>   at java.awt.EventDispatchThread.run(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code)
>
> UIDefaults.getUI() failed: no ComponentUI class for:
> com.sun.java.swing.JSlider[horizontal, value=50, adj=false, min=0,
> max=100, majorTickSpacing=0, minorTickSpacing=0, snapToTicks=true,
> isInverted=false, paintLabels=false, paintTicks=false]
Technical Details
Message-ID: <3715E70D.3357399A@netrisk.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371497B1.D6DA72A9@flashnet.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8bff475a32a5d783
X-Google-Attributes: gid111d45,public
From: Vasudevan Srinivasan <vasudevan@netrisk.com>
Subject: Re: Swing applets under Netscape 4.5
Date: 1999/04/15
Message-ID: <3715E70D.3357399A@netrisk.com>
X-Deja-AN: 466706692
Content-Transfer-Encoding: 7bit
References: <371497B1.D6DA72A9@flashnet.it>
To: Ugo Landini <Ugo.Landini@flashnet.it>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: NetRisk Inc
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing