🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem compiling java swing

#12834
From: Matt Krevs
Date: Thu, 05 Nov 1998 00:00
37 lines
1667 bytes
JTable definitely exists in the com.sun.java.swing package.

Are you sure the swing package is in your classpath?

Are you able to access any other members in the swing package?

Check that swingall.jar is in your classpath.

Kevin Ruggiero wrote in message <363FB9C8.6AB898CE@Buffalo.EDU>...
>I'm trying to compile an applet that is using the JTable class.
>However, I'm having a rather annoying problem with the compiler.  My
>file looks something like this:
>
>import java.awt.*;
>import java.awt.event.*;
>import java.applet.*;
>import com.sun.java.swing.*;
>
>//import com.sun.java.swing.UIManager;
>public class client extends Applet {
> boolean isStandalone = false;
> JTable jTable1 = new JTable();
>.
>.
>.
>
>Anyway, the error I'm getting is this:
>Error: (21) class JTable not found in class client.
>
>Why is this?  By looking at the docs, that file is in
>com.sun.java.swing.  I'm using JBuilder 2.0, with Swing 1.0.1.  I've
>also tried compiling using javax.swing.*, and com.sun.java.swing.table.*
>(which I saw in a book), but all to no avail.  Can someone please help?
>Thanks!
>
>Kevin Ruggiero
>kdr@cse.Buffalo.EDU
Technical Details
Message-ID: <71qi9k$ci32@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <363FB9C8.6AB898CE@Buffalo.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3974ac123b63bd02
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: problem compiling java swing
Date: 1998/11/05
Message-ID: <71qi9k$ci32@forums.borland.com>
X-Deja-AN: 408444088
References: <363FB9C8.6AB898CE@Buffalo.EDU>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing