T
tiewknvc9
Hi,
I have created a jtextfield that uses a defaultModel of a
PlainDocument.
I do this so that I can limit the input in the textfield to 3 digits.
The problem that seems to have arisen is that when I call
myTextField.getText(), nothing is returned unless specifically set with
setText();
This is especially annoying since I am trying to get user input in the
field.
Does anyone know why this is happening? What can I do to fix this?
Thanks
I have created a jtextfield that uses a defaultModel of a
PlainDocument.
I do this so that I can limit the input in the textfield to 3 digits.
The problem that seems to have arisen is that when I call
myTextField.getText(), nothing is returned unless specifically set with
setText();
This is especially annoying since I am trying to get user input in the
field.
Does anyone know why this is happening? What can I do to fix this?
Thanks