🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #47

Applet can't find widget class

#47
From: Knut Hovda
Date: Mon, 26 Mar 2001 09:36
44 lines
2447 bytes
Hello,

I'm trying to use a 3rd part widget (JBChartXLite) with JBuilder 4 in our
app, but can't get our app (SwingkursApplet) to find the needed class file.
I get the error message:

"SwingkursApplet.java": Error #: 300 : class JBChartXLite not found in class
SwingkursApplet at line 35, column 3

Here is the applet code:

package swingkurs;

import com.vstl.swing.chartx.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;

public class SwingkursApplet extends JApplet {
  boolean isStandalone = false;
  JPanel jPanel1 = new JPanel();
  JButton jButton1 = new JButton();
  JLabel jLabel1 = new JLabel();
  JBChartXLite vstl;                 <= fails here
...

Why is JBChartXLite not found, as long as I have imported
com.vstl.swing.chartx.* above? The compiler does not complain about the
import com.vstl.swing.chartx.*; command, which I assume means that the
source is found. And in this folder is the JBChartXLite.class file. But why
is the compiler looking for this class in the applet class?

(I apologize if this is a stupid question, but I'm new at this.)

In advance, thanks for your help.

Regards,

Knut Hovda (knut.hovda@pti.no)
  PTI Scandpower AS
  P.O.Box 206 / Billingstadsletta 30
  1377 Billingstad, Norway
  Phone +47 66 85 03 20
Technical Details
Message-ID: <L4Ev6.338$fof.180054016@news.telia.no>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!proxad.net!opentransit.net!news.tele.dk!128.39.3.166!uninett.no!news.powertech.no!nntp.newmedia.no!newsfeed1.enitel.no!news.telia.no!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,7c2057c8de1775f2,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: ff01d,7c2057c8de1775f2,start
X-Google-Attributes: gidff01d,public
X-Google-ArrivalTime: 2001-03-26 01:38:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!proxad.net!opentransit.net!news.tele.dk!128.39.3.166!uninett.no!news.powertech.no!nntp.newmedia.no!newsfeed1.enitel.no!news.telia.no!not-for-mail
From: "Knut Hovda" <knut.hovda@pti.no>
Newsgroups: comp.lang.java.help,borland.public.jbuilder.applet-issues
Subject: Applet can't find widget class
Lines: 47
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <L4Ev6.338$fof.180054016@news.telia.no>
Date: Mon, 26 Mar 2001 09:36:43 GMT
NNTP-Posting-Host: 194.19.37.186
X-Complaints-To: abuse@enitel.no
X-Trace: news.telia.no 985599403 194.19.37.186 (Mon, 26 Mar 2001 11:36:43 CEST)
NNTP-Posting-Date: Mon, 26 Mar 2001 11:36:43 CEST
Organization: Enitel Internet Public Access