Reputation: 97
Is it possible to keep the JTextField uneditable, but keep the selection option using cursor enabled?
Upvotes: 0
Views: 198
Reputation: 285405
Simply set editable to false via setEditable(...)
The default for the focusable property is true so there will be no need to call setFocusable(...)
.
Upvotes: 2