What is need to import java.awt.event.*
In making the awt programs we import java.awt.*
It means all the packages inside this must be imported to my programe.
Then what is need to import java.awt.event.*;in the same programe..
means in a same programe why there is aneed to import java.awt.even if we imported java.awt...
[b]Question asked by visitor aashi[/b]
Re: What is need to import java.awt.event.*
We need to import java.awt.event.*along with java.awt.*in the same program why becauce both are different packages
java.awt package:Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.event package:Provides interfaces and classes for dealing with different types of events fired by AWT components.