Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtable with a customerizedRender and Editor  RSS feed

 
vitesse wei
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,folks
I have a Jtable displaying data from database,and in some fields,like language,I attached a customerized cell render and editor,everything is fine when I started Jtable,but When I drag and drop language column to other place,the editor is fine,but the render is rendering data with a wrong way,I suppose english and french will render green,others will be red,but after drag-and-drop the column,it render right data to red.
is there any body ever had this situation or know where is the possible problem?
thanks advance!(I didn't post code because it is quite big).


 
Rob Camick
Ranch Hand
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I drag and drop language column to other place,the editor is fine,but the render is rendering data with a wrong way


Sounds like you might be using the wrong index. JTable has the concept of model column and view column.
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And it has methods to convert rows and columns from one to the other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!