0

I am using in my program an editable JTable. My question is:

How would you restrict the input that is written in the table?

gnat
  • 6,213
  • 108
  • 53
  • 73
maximus
  • 11,264
  • 30
  • 93
  • 124
  • 1
    please what is `I appreaciate your answer!!! `, remove that, back to your question, have look at isEditable, you can to set that for Column, or Column & Row index – mKorbel Oct 19 '12 at 07:36
  • 1
    for input validations, formating, input mask, verifier to use proper XxxCellEditor – mKorbel Oct 19 '12 at 07:39
  • but that just makes the cell not/editable! My Problem is that the editable cells should only get selected Input, like Integers and no Chars ect. How would you integrate that? – maximus Oct 19 '12 at 07:39
  • thx mKobel for your answer! What do you mean by XxxCellEditor and the set for proper Colume.Class, pls provide some further explanation. – maximus Oct 19 '12 at 07:41
  • please I'm leaving this thread, [bunch of code, descriptions about by (excluding my person 2nd - 8place)](http://stackoverflow.com/tags/jtable/topusers) – mKorbel Oct 19 '12 at 07:44
  • 2
    What do you mean by "*restrict*"? Do you want the user to only be able enter dates, numbers, text, elephants?? – MadProgrammer Oct 19 '12 at 07:48

1 Answers1

1

You could try using the tutorial "How to Use tables" and review the section titled "Using Other Editors"

GrahamA
  • 5,875
  • 29
  • 39