Closed Thread
Results 1 to 4 of 4

Thread: Action and event

  1. #1
    R3.RyozKidz Guest

    Action and event

    What is the difference between an action and a event .?
    is this the same ?

  2. CODECALL Circuit advertisement

     
  3. #2
    Join Date
    May 2009
    Location
    Belgium
    Posts
    1,874
    Rep Power
    24

    Re: Action and event

    Dunno how it happened, but after editing my post it posted another message(see below). If any admin sees this, you may delete this post.

  4. #3
    Join Date
    May 2009
    Location
    Belgium
    Posts
    1,874
    Rep Power
    24

    Re: Action and event

    hmm i'm having a hard time to think up something that explains the difference...

    The easiest i can come up with is:
    The action is what the kind of action is that happened, the event contains information about who caused that action.

    So the same action can be caused by different kinds of events and 1 event can cause multiple actions. (maybe the last part isn't totally correct?)

    key example:
    -keyPressed
    -keyReleased
    -keyTyped
    These 3 Actions, that's what a key can do. When the action occurs, Java also gives an Event, in this case a KeyEvent. Which can tell you which key did it.
    So the same action can be caused by different kinds of events and 1 event can cause multiple actions.
    keypressed, can be caused by multiple keys. 1 key can be pressed, typed & released, multiple actions.

  5. #4
    R3.RyozKidz Guest

    Re: Action and event

    ok ..~ understand now ..~ so when an action occurs , the event object will send an information that contains about the action to the action listener object ..~ thus , something will occur after the action ...~

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Event listener and event dispatching process
    By R3.RyozKidz in forum Mobile Development
    Replies: 0
    Last Post: 09-28-2011, 09:01 PM
  2. Action script 2.0 or 3.0?
    By mangaissofun in forum General Programming
    Replies: 10
    Last Post: 03-16-2010, 01:23 PM
  3. Form Action
    By ezcat in forum HTML Programming
    Replies: 2
    Last Post: 09-20-2009, 02:45 AM
  4. Getting Time + a action
    By bionide in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-17-2009, 09:56 AM
  5. Confirm action
    By Jaan in forum JavaScript and CSS
    Replies: 9
    Last Post: 02-16-2009, 01:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts