Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Numbers only in a cell of a JTable

807589Jul 13 2008 — edited Jul 13 2008
Is there a way to only let numbers into a cell of a JTable? I tried key binding and disabled keys that were not numbers, and it kinda worked, but if you double clicked the cell you could still enter text... And if you pressed a number and got into the cell, you could still type text after the number...

Any suggestions?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2008
Added on Jul 13 2008
6 comments
2,092 views