i'm learning Java for one year now and this question is confusing me.
At the moment i'm working with Java Swing and i want to know why i have to write the line
import java.awt.event.*;
when i want to use the actionListener even when i've already imported the whole awt package before :/
import java.awt.*
why do i have to tell the compiler to import a Sub-package (is it the right name?), for instance the event package, when i already imported everything under the awt package?
Thanks alot!