Cursor in an uneditable textpane? (or getting chars as they are typed)
- From: Daniel <daik.no-spam@xxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Apr 2005 23:15:19 +0200
Hi,
I have an application that's lets the user type text into a JTextPane.
I transmit this text char by char as it is typed (requirement for the
application) over the network. This means that I can not let the user
type anywhere s/he wants but only at the end of the currently typed
text. At present this is done by setting the textpane notEnabled and
then via a keyListener instert the text char by char myself into the
pane.
Now it's not very good for the user not to have a cursor while typing,
so can I get a cursor visible and still only allow the user to
insert(i.e type) text at the very end of the text?
---
Daniel
http://www.daik.se
.
- Follow-Ups:
- Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- From: Christian Kaufhold
- Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- From: Daniel
- Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- Prev by Date: Re: Occasional exceptions in event dispatching
- Next by Date: Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- Previous by thread: coding style for swing
- Next by thread: Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- Index(es):
Relevant Pages
|