Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when i used the implements keyword

Status
Not open for further replies.

papaboy2

MIS
Jan 28, 2003
52
PH
hi, i always encounter an error when i try to compile a java application that use implements keyword. first it works fine then when i used it again on my next file it generates an error always even if i copy and paste it from my first java app to the new java app. help pls. thank you. here is the code(actually its from the website of sunjava, i'm a novice in java):

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class SwingApplication implements ActionListener {
... */code under swingapplication
}
 
it says public SwingApplication.Java not declared, i'm using freeware JCreator by the way, i can't copy and paste the error when i use javac in dos prompt even in JCreator.
 
JCreator had an 'capture output' option, when I used it years ago.
And if you compile on Dos you simply send the output (stdout and stderr) to a file:

Code:
javac SwingApplication.java > compile.log 2> compile.err

It isn't SwingApplication.Java - is it?

seeking a job as java-programmer in Berlin:
 
Maybe this make no sense, but I'd try writing the fully qualified name of the interface you implement, ie, implements java.awt.event.ActionListener.

Cheers,

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top