Hello All,
I was trying to set a value to the text box and then i want to make it uneditable, so i am trying to do the following steps,
String value = "Dynamic";
JTextField jtxt = new JTextField();
jtxt.setText(value);
jtxt.setEditable(false);
But it is not working, still i am able to change the value in the text field.
Please let me know what to do to make it disable.
Regards,
Sri.
I was trying to set a value to the text box and then i want to make it uneditable, so i am trying to do the following steps,
String value = "Dynamic";
JTextField jtxt = new JTextField();
jtxt.setText(value);
jtxt.setEditable(false);
But it is not working, still i am able to change the value in the text field.
Please let me know what to do to make it disable.
Regards,
Sri.