hai in our program we include java.awt.* package to use the components.
if we import this package,all the properties can used to our
program.then why
we import the java.awt.event.*?(when we use the java.awt package the
event class proprties also imported(?)
> hai in our program we include java.awt.* package to use the components.
> if we import this package,all the properties can used to our
> program.then why
> we import the java.awt.event.*?(when we use the java.awt package the
> event class proprties also imported(?)
Packages are not hierarchical.
/import java.awt.*/ only imports all the classes in /java.awt/, not the
packages. So /java.awt.client.*/ classes are not imported unless you also
import that package explicitly.
- Lew
frank - 11 Dec 2006 16:34 GMT
thank you friend for your information