-1

what is the relationship between evet listener and event source in Java ? and i have another question what is the difference between java application and java applet ?

any help

thanks in advance

maya
  • 9
  • 4
  • 1
    By custom, please ask just one question per question. – trashgod Apr 14 '10 at 14:15
  • Read the [Swing tutorial](http://java.sun.com/docs/books/tutorial/uiswing/TOC.html). The section on "How to Write Event Listener" would be a good place to start. – camickr Apr 14 '10 at 15:15

1 Answers1

0

1) A good starting point is EventListenerList, discussed here.

2) An Applet runs in a browser and an application runs on the desktop.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • 1
    Also in reference to Application vs. Applet, Applets run in a security sandbox where they typically have less permissions than an application, such as accessing the local file system. – M. Jessup Apr 14 '10 at 14:21