Results 1 to 14 of 14

Thread: Index value of Component that fired an event?

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Resolved Index value of Component that fired an event?

    What i need is a way to find out which JButton from a JButton[] fired off an event and depending on which JButton it was associate that button with an int.
    I need to associate the JButtons with integers so i can use the ints as positions to add and remove Components from a Containter using remove(Component comp).

    It would be easy if the Container class had a method that returned an index of which Component within it fired off an event.

Posting Permissions

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



Click Here to Expand Forum to Full Width