Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting maximum limit of characters in JTable  RSS feed

 
amol dhingra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new into Java Development. I'm developing a program in which the JTable should restrict user to enter a certain number of characters and if the input exceeds the limit, it should display a msg and on clicking cancel all the exceeded characters should revert back.Can anybody please help me?

Thanks in Advance,
Amold
 
Rob Spoor
Sheriff
Posts: 21092
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you skip the call to super.setValueAt, the actual value in the model will never be overwritten.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!