In my application, I am enabling/disabling parts of a form based on user interaction. The problem I am experiencing is with the JTextField not being able to assume focus, in other words I cannot select or change the text inside this field, even after it is enabled.
Let us assume jtf is a JTextField component.
In the disabling function it is disabled by:
jtf.setEnabled(false);
To enable the field is done with:
jft.setEnabled(true);
I have tried jft.setEditable(true); but that doesn't do a thing. Has anyone ever encountered this problem?
Thanks!
Let us assume jtf is a JTextField component.
In the disabling function it is disabled by:
jtf.setEnabled(false);
To enable the field is done with:
jft.setEnabled(true);
I have tried jft.setEditable(true); but that doesn't do a thing. Has anyone ever encountered this problem?
Thanks!