Budi Handoko
Posts: 4
Nickname: woodyround
Registered: Apr, 2002
|
|
Re: Errors in Java
|
Posted: Apr 22, 2002 5:41 AM
|
|
cancelButton.addActionListener(new ActionListener() { (line 46) public void actionPerformed(ActionEvent event) { (line 47) dispose(); (line 48) } (line 49) }); (line 50)
the errors: (46,55) : error J0014: Expected ')' (46,55) : error J0012: Expected ';' (50,4) : fatal error J0020: Expected 'class' or 'interface'
i put the import at the top of the file. one more thing, i try to close the codes, and it seems that it is unable to find the java.awt.event.* how do i make the J++ able to find it? thanks a lot.
budi
ps: i m a beginner in java, so thanks so much for your help.
|
|