Re: JTextField - how to disable selecting text in this component?



mearvk wrote:
dako wrote:
....
...I forget say I don't want to prevent component from puting text
in it but only whilst selecting text in it. Is it imposible?
.....
I think it can be done but it will require some hacking and time. There
may be a better way ...

How about - an entirely different /strategy/ in
following 'the path of least surprise' in the use
of GUI components?

It is nonsensical to allow editing of a text field, but
disallow selecting the text (I would normally select
the text simply to delete the content, but if this
scheme were implemented - i'd need to hit 'del, del,
del, del, ..oh heck I'll just use the software of their
direct competitor, instead..').

Andrew T.

.