I just want to know how its possible to select text in a JTextField and place the cursor at the beginning of the selection. I tried doing the selection using textfield.select(2,5); then placing the cursor using textfield.setCaretPosition(2); this places the cursor but takes away my selection
What to do, what to do???
posted 9 years ago
this will select 'World', with the caret just before 'W'