Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: event handling doubts

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    5
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default event handling doubts

    hi there,i have been doing java from the past 3 months now... i have reached ,what i feel is the most interesting part of java,gui and event handling,i have been facing difficulties with understanding of how to combine several components and and an effective event handling code to them,if i can get some examples of event handling programs...it would help me better understand the concept and get a head start thanku


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    1,069
    Thanks
    7
    Thanked 215 Times in 191 Posts

    Default Re: event handling doubts

    Writing Event Listeners in Oracle's Tutorial has numerous examples.

    In constructing your own examples (which is the way to go) start simple: a button whose clicks cause a label to change, a combobox whose selection causes a multiplication table to be written in a text area, a timer which causes a component's background colour to change periodically. That sort of thing.

    A nice extension is to have multiple views of the same underlying model: for instance two sliders which are kept in "synch" so that sliding one causes the other to slide as well. (as well as any other change that changing slider values might make.)

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    5
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: event handling doubts

    Quote Originally Posted by pbrockway2 View Post
    Writing Event Listeners in Oracle's Tutorial has numerous examples.

    In constructing your own examples (which is the way to go) start simple: a button whose clicks cause a label to change, a combobox whose selection causes a multiplication table to be written in a text area, a timer which causes a component's background colour to change periodically. That sort of thing.

    A nice extension is to have multiple views of the same underlying model: for instance two sliders which are kept in "synch" so that sliding one causes the other to slide as well. (as well as any other change that changing slider values might make.)
    thank you for the info

Similar Threads

  1. Help with event handling - beginner
    By kyasuleyman in forum AWT / Java Swing
    Replies: 10
    Last Post: May 2nd, 2012, 07:59 AM
  2. Event Handling - Best Practice?
    By ishtar in forum Java Theory & Questions
    Replies: 6
    Last Post: October 2nd, 2011, 09:52 AM
  3. Event Handling
    By maress in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 24th, 2011, 03:29 AM
  4. [SOLVED] JRadioButton Event Handling Help?
    By CS313e in forum AWT / Java Swing
    Replies: 2
    Last Post: March 27th, 2010, 12:56 PM
  5. Event handling
    By subhvi in forum AWT / Java Swing
    Replies: 3
    Last Post: August 26th, 2009, 12:20 PM