• Post Reply Bookmark Topic Watch Topic
  • New Topic

remove row in table

 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to remove a row in the table.

here is my table:
--------------------------------
NAME - AGE - GENDER // column header

Eng 21 male //row index 0
Tan 22 female //row index 1
Zheng 20 male //row index 2

---------------------------------

i double click on the row index 1,and want to delete/remove it.

here is my code:


my result was nothing.
is it i need to code "refresh table"...?
or
i use the wrong method --> removeRowSelectionInterval(...) ?
---------
ps: removeRowSelectionInterval(...) method is kinda annoying.
but i can't find any other method which remove/delete a row at specified index.

any one help please...
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
remove the row from the table model

 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you.
i forgot table model.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!