Results 1 to 2 of 2

Thread: What is selected?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    16

    What is selected?

    Hi,
    How would I go about finding out what row a user has selected from a table in an Applet front end?
    Any ideas would be appreciated,
    littlefitzer

  2. #2
    Addicted Member Mrs Kensington's Avatar
    Join Date
    Sep 2001
    Location
    Dorset, UK
    Posts
    144
    i would suggest using tables getSelectedRox() and getSelectedColumn() to get the selected row and column.

    if you want to find out when a selection changes you'll want to add a listSelectionListener to the the tables selection model...

    e.g.
    Code:
    myTable.getSelectionModel().addListSelectionListener(listener);
    Ford? Theres an infinite number of monkeys outside that want to talk to you about a script of hamlet they've produced!

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