Article View: borland.public.jbuilder.java.language
Article #15314Re: Swing
From: Jonathan Moore
Date: Thu, 24 Jun 1999 00:00
Date: Thu, 24 Jun 1999 00:00
31 lines
2600 bytes
2600 bytes
OK, you seem to be using jdk1.2.1 and running the results in some
browser. Have you changed the structure of your <applet> tag to specify
the plugin? You need to change <applet> to <embed> for netscape and
<object> for IE, IIRC. The syntaxes for these tags are explained in the
plugin docs at
http://192.9.48.9/products/plugin/1.2/docs/tags.html
If you just use <applet>, then the browsers default JVM will be used,
not the plugin.
Jon Moore
MJR wrote:
>
> Oh and when I import javax.swing.*, and try to create a JButton, everything
> compiles fine, but I get a run-time NoClassDefFoundError:
> javax/swing/JButton
>
> MJR wrote in message <7kr9ep$j1j$1@mailint03.im.hou.compaq.com>...
> >Does anyone know how to use Swing components? The java.sun.com site says
> >that Swing is automatically installed with jdk1.2.1, which is what I'm
> >using. But when I try to create something like a
> >com.sun.java.swing.JButton, I get a compile-time error telling me that this
> >class couldn't be found. Any help would be appreciated.
> >
> >
Technical Details
Message-ID:
<3771F61A.2E0155A@lboro.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7kr9ep$j1j$1@mailint03.im.hou.compaq.com> <7krbf2$nem$1@mailint03.im.hou.compaq.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d6b,9cfed302216836dc X-Google-Attributes: gid111d6b,public X-Google-Thread: f74b3,9cfed302216836dc X-Google-Attributes: gidf74b3,public X-Google-Thread: f5d71,9cfed302216836dc X-Google-Attributes: gidf5d71,public X-Google-Thread: fecd1,9cfed302216836dc X-Google-Attributes: gidfecd1,public X-Google-Thread: 113ae9,9cfed302216836dc X-Google-Attributes: gid113ae9,public X-Google-Thread: 10a146,9cfed302216836dc X-Google-Attributes: gid10a146,public X-Google-Thread: fa45f,9cfed302216836dc X-Google-Attributes: gidfa45f,public X-Google-Thread: 10bb9b,9cfed302216836dc X-Google-Attributes: gid10bb9b,public From: Jonathan Moore <J.P.Moore@lboro.ac.uk> Subject: Re: Swing Date: 1999/06/24 Message-ID: <3771F61A.2E0155A@lboro.ac.uk> X-Deja-AN: 493294091 Content-Transfer-Encoding: 7bit References: <7kr9ep$j1j$1@mailint03.im.hou.compaq.com> <7krbf2$nem$1@mailint03.im.hou.compaq.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@lboro.ac.uk X-Trace: sun-cc204.lboro.ac.uk 930215493 7438 158.125.64.50 (24 Jun 1999 09:11:33 GMT) Organization: Chemical Engineering Department, Loughborough University Mime-Version: 1.0 NNTP-Posting-Date: 24 Jun 1999 09:11:33 GMT Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.api,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.misc,comp.lang.java.programmer,microsoft.public.inetexplorer.ie4.java_applets