+ Reply to Thread
Results 1 to 4 of 4

Thread: Action and event

  1. #1
    Learning Programmer R3.RyozKidz is an unknown quantity at this point R3.RyozKidz's Avatar
    Join Date
    Oct 2009
    Posts
    84

    Action and event

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

  2. #2
    Programmer oxano is on a distinguished road oxano's Avatar
    Join Date
    May 2009
    Location
    Belgium
    Age
    19
    Posts
    166

    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.

  3. #3
    Programmer oxano is on a distinguished road oxano's Avatar
    Join Date
    May 2009
    Location
    Belgium
    Age
    19
    Posts
    166

    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.

  4. #4
    Learning Programmer R3.RyozKidz is an unknown quantity at this point R3.RyozKidz's Avatar
    Join Date
    Oct 2009
    Posts
    84

    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 ...~

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Action Listeners
    By sp3tsnaz in forum C# Programming
    Replies: 9
    Last Post: 12-14-2009, 06:49 AM
  2. Replies: 0
    Last Post: 11-13-2009, 12:00 AM
  3. Replies: 0
    Last Post: 08-31-2009, 08:20 PM
  4. Replies: 0
    Last Post: 08-18-2009, 01:50 AM
  5. Replies: 0
    Last Post: 07-24-2009, 07:50 AM

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