Jump to content

Events

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Sionofdarkness

Sionofdarkness

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 384 posts
Do events have anything to do with applets? I've been reading a little about them but I still don't understand what their purpose is. I know so little abot Java :(

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
An applet is a java program that is run from within a browser, which means you can use it to make a game that is played over the net. It has some restrictions on what type of access it is allowed to make on the user's computer, however.

An event is something that occurs during program execution, like a mouse-click, a double-click, etc.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_sn17_*

Guest_sn17_*
  • Guests
Oh. So applet is like the main frame and event is what runs on it. Rite?

#4
brackett

brackett

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
Not exactly. An applet is just a specialized form of a Java program - it denotes that the Java application is hosted inside a web browser.

Events are a programming concept. An object will raise an event to let other objects know that something "interesting" has happened. For instance, a button will have a click event so that other objects can know when the button is clicked and perform whatever logic makes sense at that time.

The 2 terms have no relation to each other.

#5
Sionofdarkness

Sionofdarkness

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 384 posts
Oh, so I was mistaken. At least I know now, thanks brackett. You've been helpful in lots of topics.