I should stop user from entering more than (lets say 10 ro 20 characters) in a text field because if he enters more than specified limit it throws exception from the database..
I tried to use custom code Textfield_txt = new javax.swing.JTextField(10);
but it is not working
please give your adivce on this