Skip to main content

Applet sample code problem

2 replies [Last post]
jhipp117
Offline
Joined: 2008-08-24
Points: 0

In the Java Tutorial lesson A
Simple Network Client Applet, the applet source
code doesn't compile for me.
Errors as follows:
QuoteClientApplet.java:157: package org.jdesktop.swingworker does not exist
org.jdesktop.swingworker.SwingWorker<String, String> {
^
QuoteClientApplet.java:166: method does not override or implement a method from
a supertype
@Override
^
QuoteClientApplet.java:229: cannot find symbol
symbol : method get()
location: class QuoteClientApplet.QuoteGetter
String s = get();
^
QuoteClientApplet.java:250: cannot find symbol
symbol : method execute()
location: class QuoteClientApplet.QuoteGetter
quoteGetter.execute();
^
4 errors
Has anyone else had any difficulty with this one?

Message was edited by: jhipp117

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aakashy
Offline
Joined: 2009-08-14
Points: 0

ya m having the same problem..have you got the solution then please tell

weberlin
Offline
Joined: 2004-11-02
Points: 0

Here is the notice within the source code:
/*
* Java(TM) SE 6 version.
* SwingWorker can be downloaded at:
* https://swingworker.dev.java.net/
* SwingWorker is included in Java(TM) SE 6.
*/

And it should be the answer you need.