Re: AWTEvents errors and deprecated methods

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

  • Next message: Anthony Borla: "Re: Q about java arrays"
    Date: Sat, 29 Nov 2003 22:25:05 -0700
    
    

    "Michael G" <mike-g@montana.com> wrote in message
    news:3fc974b3_4@127.0.0.1...
    > 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
    >

    I get the following when using "javac -deprecation ..."

    C:\CS595\VEHICL~1\VEHICLE>javac -deprecation ProcessingFacade.java
    .\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\Component.java:1176: warning: postEvent(java.awt.Event) in
    java.awt
    enuContainer has been deprecated
       public boolean postEvent(Event arg0)
                      ^
    .\java\awt\Frame.java:8: warning: postEvent(java.awt.Event) in
    java.awt.MenuCo
    ainer has been deprecated
    public class Frame extends Window implements MenuContainer
           ^
    .\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
       {
       ^
    5 errors
    2 warnings


  • Next message: Anthony Borla: "Re: Q about java arrays"