• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about imports  RSS feed

 
Nick Petas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading a book about java and I have the following question.

Why import java.awt.* is different from import java.awt.event.* ?

Both these imports are being used in a sample program in the book.

Thank you.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://download.oracle.com/javase/tutorial/java/package/usepkgs.html
Especially the section subtitled "Apparent Hierarchies of Packages"

In fact, you probably need to go through the entire "Packages" trail
http://download.oracle.com/javase/tutorial/java/package/index.html
 
Nick Petas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx a lot Darryl for your answer.Now I get it.
Is there anywhere any complete api tree(maybe as an image) so that I can have a general view?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!