Results 1 to 2 of 2

Thread: Event handling

  1. #1
    Suresh karthi is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default Event handling

    why do we use a constructor to add components like buttons to a panel? why dont we add them through paintcomponent() itself?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Event handling
    By smallmos1 in forum New To Java
    Replies: 7
    Last Post: 11-24-2010, 08:22 PM
  2. Event Handling
    By zzpprk in forum AWT / Swing
    Replies: 2
    Last Post: 11-12-2009, 09:30 PM
  3. Event handling... help?
    By kevzspeare in forum New To Java
    Replies: 2
    Last Post: 04-04-2009, 08:46 PM
  4. SWT Event Handling
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-30-2007, 12:21 PM
  5. Event Handling
    By luisarca in forum Sun Java Wireless Toolkit
    Replies: 5
    Last Post: 05-07-2007, 06:05 PM

Posting Permissions

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