Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- From: usenet@xxxxxxx (Christian Kaufhold)
- Date: Sun, 24 Apr 2005 18:52:32 +0000 (UTC)
Daniel <daik.no-spam@xxxxxxxxxxxxxxxxx> wrote:
> 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?
Change the caret to alway stay at the end (NavigationFilter).
Christian
.
- References:
- Prev by Date: Application Storybook Builder - any recommendation?
- Next by Date: Re: left justify icon in JTable cell
- Previous by thread: Re: Cursor in an uneditable textpane? (or getting chars as they are typed)
- Next by thread: left justify icon in JTable cell
- Index(es):
Relevant Pages
|