Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to point a cursor into a particular column in Table

 
maliny ramu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the scenario
When adding a new row in the table,the cursor should point to the particular column.Could you help me out with solution with example.?
I'm using Table Model Listener whereby when i double clicked the cursor will be there.
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok
as per you explained it if you want to point to a particular row of the table you must use a Object[][] data
as a argument to the table model and pass the data to table,you want to point to a particular row than data[i][j] in a for loop,than keep changing i & j value [0][0],[0][1] and so on.hope this may be helpful to you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic