Article View: comp.lang.java.gui
Article #23Re: NullPointerException???!!!
From: Xinyi Xu
Date: Tue, 23 Mar 1999 00:00
Date: Tue, 23 Mar 1999 00:00
80 lines
3210 bytes
3210 bytes
It is because that you use borland.jbcl.control.ImageControl.* package which is not supported by Java-Plugin 1.2. After it throws the NullPointerException, it stops to execute the remaining codes, that is why you can only see partial your applet. Xinyi Daniel wrote: > Hi, > > I've problems to run an applet with netscape4.5 JDK1.1.2 Plugin. > I'm working with JBuilder1. Netscape only show me a part of the headbar, > but not the whole GUI-frame, what can be wrong? > Here are the html-File and the JavaConsoleWindow. If anybody can help > me, thanks a lot. > Daniel > > html-file: > > <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; > charset=iso-8859-1"> > <META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en] (WinNT; I) > [Netscape]"> > <TITLE>HTML Test Page > </TITLE> > </HEAD> > <BODY> > The Graphical-User-Interface will appear below in a Java enabled > browser. > <BR><APPLET > CODEBASE = "myclasses/archive" > ARCHIVE = "jbcl-rt.zip, jclass.zip, jgl.zip" > CODE = "GUI.class" > NAME = "TestApplet" > WIDTH = 400 > HEIGHT = 300 > HSPACE = 0 > VSPACE = 0 > ALIGN = middle > ></APPLET> > </BODY> > </HTML> > > JavaConsoleWindow: > > java.lang.NullPointerException > > at sun.awt.windows.WToolkit.prepareScrImage(Compiled Code) > > at sun.awt.windows.WToolkit.prepareImage(Compiled Code) > > at java.awt.Component.prepareImage(Compiled Code) > > at java.awt.Component.prepareImage(Compiled Code) > > at borland.jbcl.control.ImageControl.setupImage(Compiled Code) > > at borland.jbcl.control.ImageControl.setImageName(Compiled Code) > > * at Login.jbInit(Compiled Code) > > at Login.<init>(Compiled Code) > > at GUI.start(Compiled Code) > > at > netscape.applet.DerivedAppletFrame$StartAppletEvent.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)
Technical Details
Message-ID:
<36F7BEAE.904B83A8@msx.upmc.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36F20F5B.DE833ED8@Alcatel.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,68c7736befaeba8d X-Google-Attributes: gidf5d71,public X-Google-Thread: 10fd6d,68c7736befaeba8d X-Google-Attributes: gid10fd6d,public X-Google-Thread: fbe9c,68c7736befaeba8d X-Google-Attributes: gidfbe9c,public X-Google-Thread: 104d14,68c7736befaeba8d X-Google-Attributes: gid104d14,public X-Google-Thread: 10a146,68c7736befaeba8d X-Google-Attributes: gid10a146,public X-Google-Thread: f74b3,68c7736befaeba8d X-Google-Attributes: gidf74b3,public From: Xinyi Xu <xux@msx.upmc.edu> Subject: Re: NullPointerException???!!! Date: 1999/03/23 Message-ID: <36F7BEAE.904B83A8@msx.upmc.edu> X-Deja-AN: 458017204 Content-Transfer-Encoding: 7bit References: <36F20F5B.DE833ED8@Alcatel.de> To: deckmann@informatik.ba-stuttgart.de X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: University of Pittsburgh Mime-Version: 1.0 Newsgroups: comp.lang.java.gui,alt.lang.java,borland.public.jbuilder.java,borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.programmer