• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get modified rows in jtable  RSS feed

 
qcom
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Right now I met a problem for using Jtable. I use jtale to edit each row. After editing, I want to get the rows which are modified except those are not modified.
Who can tell me ho to get it.
Thanks in advance.
George Chen
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi qcom???
use another vector or an array of Boolean with all values false. In the setValue() method of your table model change the object in the Vector at the particular row no. to true. when you have finished editing, use the vector of booleans to find out which rows were edited.
Amit
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"qcom",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!