0
I’m working with Jtextfield and I’m having a problem with alignment.
The field size is standard, I can’t change it. The field is also not editable, it receives the value based on a calculation between quantity and Unit value. It gets a very large cash value, 15 digits and really needs to be this size for tax purposes. The problem is that even though he is aligned to the Left, when he receives the number, he does not show the initial numbers but the end ones.. for example:
and he should stay like this:
I’ve used the setHorizontalAlignment(JTextField.LEFT);
and he remains in the same situation.
Would anyone have any idea?
Thanks, I was using this caretPosition, but when creating Textfield and not when it is updated. It worked now!
– Willian Tártaro