CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    how does one select a JTable row on a right mouse click ?

    Hi all,

    I would like to know how to select a JTable row on a right mouse click?

    thanks,
    anonymous.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: how does one select a JTable row on a right mouse click ?

    what u can do is...

    1) addMouseListener
    2) when u get mouseClicked event, get the row index from the point using 'rowAtPoint'
    3) and select it using 'addRowSelectionInterval'

    Hope it solves ur problem.

    - UnicMan

  3. #3
    Guest

    Re: how does one select a JTable row on a right mouse click ?

    thanks unicman,

    i just needed to know the name of the api-call as they have changed it now. what a strange name. although i read all the api's more than ten times i did not think that this would be the one which would solve my problem. Thanks anyway. BTW do you have a mail id, where i can to you faster.

    shantanu


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

Featured