Hello,
I am trying to shorten the length of a JTextField with the following code :
// up to this point, getColumns() returns a value of 35.
//
jTextField1.setColumns(20);
(jTextField1.getParent()).invalidate();
(jTextField1.getParent()).validate();
When I ran this code, it did not change the length of the text field at all.
I wonder if I am writing my code correctly or is there a better/more correct
way to do this?
Thank you for your help.
Akino.