The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of up
e is a type of ActionEvent, it allows you to access the properties of the ActionEvent. The actionPerformed method is called when the associated object generates a action, the ActionEvent carries the properties if the action which help you identify what yo
According to the javadoc this is for compatability with java.awt.TextField. getSource() is specified by the EventObject class that ActionEvent is a child of (via java.awt.AWTEvent). This gives you a reference to the object that the event came from. Edit:
Post a Comment:
Showing 0 Comments: