• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to stop editting the Cell

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

i Have a JTable with the Custom Renderer and Editor
The Editor has the Button which on click open the dialog and select some data(data is updating in the model no issue)

Issue i am facing
1. I want to stop editting after cilcking the OK button in the Dailog.
2. The Data will effect which i resize the coloumn, How can i do that automatically.

Please help on this.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) You need to invoke the stopCellEditing() method of the editor.

2) If I understand the question then you can use the TableColumnAdjuster.
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Rob

The issue was i have to call fireEdittingStopped(); in th Editor after closing the dialog

Its working fine now, Thanks for your support.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!