It's not a secret anymore!
The moose likes Beginning Java and the fly likes What does it mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What does it mean?" Watch "What does it mean?" New topic

What does it mean?

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116

It doesn't mean import anything of awt, right?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

It means that any classes directly in the package java.awt can be used in this file without using their package names; nothing more, nothing less. So, for example, if you include this like you can say "new Button()" instead of "new java.awt.Button()" which you'd be require to say without it.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: What does it mean?
It's not a secret anymore!