Re: JTextField - how to disable selecting text in this component?
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 29 Dec 2006 05:34:32 -0800
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.
.
- References:
- JTextField - how to disable selecting text in this component?
- From: dako
- Re: JTextField - how to disable selecting text in this component?
- From: mearvk
- Re: JTextField - how to disable selecting text in this component?
- From: dako
- Re: JTextField - how to disable selecting text in this component?
- From: Brandon McCombs
- Re: JTextField - how to disable selecting text in this component?
- From: dako
- Re: JTextField - how to disable selecting text in this component?
- From: mearvk
- JTextField - how to disable selecting text in this component?
- Prev by Date: Re: JTextField - how to disable selecting text in this component?
- Next by Date: Java Swing Grid
- Previous by thread: Re: JTextField - how to disable selecting text in this component?
- Next by thread: Re: JTextField - how to disable selecting text in this component?
- Index(es):