How do I set a JTextField, for example:
JTextField MyName = new JTextField(10);
So that when I add the TextField to a panel it accepts ONLY 10 characters and no more. When I add a TextField like this to a panel, you can type as much as you like. Is there a way of making only allow you to type in the max number of characters I specify?
I've seen reference to this on the net, but can't locate an answer.