Selecting Rows From JTable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajendra Kumar k
    New Member
    • Jul 2007
    • 1

    #1

    Selecting Rows From JTable

    Hai
    i want to select (by a single mouse click)an entire Row of a JTable and the contents of the row should be displayed in corresponding JTextAreas
    i.e no. of coloumns = no. of Jtextareas

    i can select any single cell and the entire row should be selected and displayed

    Thanks in adv..

    Rajendra Kumar.K
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by rajendra Kumar k
    Hai
    i want to select (by a single mouse click)an entire Row of a JTable and the contents of the row should be displayed in corresponding JTextAreas
    i.e no. of coloumns = no. of Jtextareas

    i can select any single cell and the entire row should be selected and displayed

    Thanks in adv..

    Rajendra Kumar.K
    Does your table have rowSelection allowed set? See the methods in the API specs for JTable

    Comment

    • nanhiPari
      New Member
      • Jul 2007
      • 8

      #3
      Originally posted by r035198x
      Does your table have rowSelection allowed set? See the methods in the API specs for JTable

      n how can i add the Header in th JTable??

      Comment

      Working...