AWTEvents errors and deprecated methods

From: Michael G (mike-g_at_montana.com)
Date: 11/30/03


Date: Sat, 29 Nov 2003 21:40:16 -0700

I am getting some errors/warnings that I don't understand. This code is in
a Java app that uses Swing J Components with an ActionListener. The
code/errors/warnings follow. Thanks for any help, Mike

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

public class GraphicalImp extends UIImp implements ActionListener
{

...//snipped code

public void actionPerformed(ActionEvent e)
   {
  String input = userInput.getText().trim();
  choice = Integer.parseInt(input);
  String searchKey = otherInput.getText().trim();
  int userSelection = facade.getUserSelection();
  String[] resultSet = facade.
        processUserSelection(userSelection,searchKey);
  facade.displayResultSet(resultSet);

   }

...//snipped

ERRORS/WARNINGS
.\java\awt\Frame.java:72: class$ is reserved for internal use
   Class class$(String arg0)
         ^
.\java\awt\Font.java:240: package AttributedCharacterIterator does not exist
   public AttributedCharacterIterator.Attribute[] getAvailableAttributes()
                                     ^
.\java\awt\AWTEvent.java:30: cannot resolve symbol
symbol : constructor EventObject ()
location: class java.util.EventObject
   {
   ^
.\java\awt\AWTEvent.java:40: cannot resolve symbol
symbol : constructor EventObject ()
location: class java.util.EventObject
   {
   ^
.\java\awt\AWTEvent.java:49: cannot resolve symbol
symbol : constructor EventObject ()
location: class java.util.EventObject
   {
   ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
5 errors

Tool completed with exit code 1



Relevant Pages

  • Re: How to implement ActionListener
    ... > I have problem to call the ActionListener but have no idea what is ... > When compile, the error message show: ... > public class EditorFrame extends JFrame implements ActionListener{ ... > .\EditorFrame.java:45: cannot resolve symbol ...
    (comp.lang.java.programmer)
  • Re: AWTEvents errors and deprecated methods
    ... Class class$(String arg0) ... symbol: constructor EventObject ...
    (comp.lang.java)