From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e180de737833224 X-Google-Attributes: gid103376,public From: Kendal Van Dyke Subject: Re: Ada Java question => oops!! Date: 1997/02/28 Message-ID: <3317420B.38AE@fn3.freenet.tlh.fl.us>#1/1 X-Deja-AN: 222151311 References: <33167E7E.4351@fn3.freenet.tlh.fl.us> Organization: Florida State University Newsgroups: comp.lang.ada Date: 1997-02-28T00:00:00+00:00 List-Id: > >...You can > >do any of the following: > > 1) use the full name "java.awt.event" instead of "event"; > > 2) drop the use of "event" in "event.UP" and say simply "UP"; OOPS! I didn't realize that earlier in my package spec I had defined a new type (TYPE DIRECTION IS (up, down, left, right);). Because of the new type I had defined, the compiler thought that when I referred to up, down, left, or right that I was referring to something in that new type I had defined, and NOT java.awt.event.up, down, left, or right.....Which is why I had to specify the full java.awt.event name. I took the new type I had defined out of the spec and bingo! I could access up, down, left, and right without the full name. So, my oversight....no compiler bugs or anything like that. Please forgive me, I'm still learning! Thanks again for the help from everyone. -- *.........................................* . |/ . . |\ENDAL . . WWW => http://www.cs.fsu.edu/~vandyke . . EMail => vandyke@cs.fsu.edu . . Pager => (904) 297-6658 . . . *.........................................*