Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

importing packages??

Thread view: 
raj_indian_sikh - 06 Jan 2007 13:39 GMT
what is difference between:
import java.awt.event.*;
and
import java.awt.event;
Paul Hamaker - 06 Jan 2007 13:52 GMT
import java.awt.event.*;
So all classes in the java.awt.event package can be found (in rt.jar)
and their short names can be used in the source.

import java.awt.event;
is not possible, but maybe you mean something like
import java.awt.event.MouseEvent;
so MouseEvent's full name is known and it can be found in rt.jar .

The above applies to interfaces as well, not just to classes.
--
http://javalessons.com  Paul Hamaker, SEMM
Teaching ICT since 1987


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.