🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15304

Re: Swing

#15304
From: Jason M. Pappas
Date: Wed, 23 Jun 1999 00:00
23 lines
2201 bytes
What are you using to develop this code?  It sounds to me like you are using
some IDE or some outdated reference material.  I suggest you check out this
url:
http://java.sun.com/products/jdk/1.2/docs/api/index.html

after looking at the API docs from this link you'll find out that
com.sun.java.swing.JButton should be javax.swing.JButton

I have noticed that Visual Age writes the code using the com.sun instead of
javax.sun, you can just use a standard editor and the replace command to fix
this.

hope this helps

Jason

MJR wrote:

> 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: <37714D0E.B194C304@sei.cmu.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7kr9ep$j1j$1@mailint03.im.hou.compaq.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5d71,9cfed302216836dc
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10bb9b,9cfed302216836dc
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: f74b3,9cfed302216836dc
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 111d6b,9cfed302216836dc
X-Google-Attributes: gid111d6b,public
X-Google-Thread: 10a146,9cfed302216836dc
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113ae9,9cfed302216836dc
X-Google-Attributes: gid113ae9,public
X-Google-Thread: fa45f,9cfed302216836dc
X-Google-Attributes: gidfa45f,public
X-Google-Thread: fecd1,9cfed302216836dc
X-Google-Attributes: gidfecd1,public
From: "Jason M. Pappas" <jpappas@sei.cmu.edu>
Subject: Re: Swing
Date: 1999/06/23
Message-ID: <37714D0E.B194C304@sei.cmu.edu>
X-Deja-AN: 493095611
Content-Transfer-Encoding: 7bit
References: <7kr9ep$j1j$1@mailint03.im.hou.compaq.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Software Engineering Institute, Carnegie Mellon University
Mime-Version: 1.0
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