I use a JTextPane but when this component lost focus, the selected text
disappear.
Does anyone know how to keep the selection active.
Olivier
ak - 26 Feb 2004 10:57 GMT
> Does anyone know how to keep the selection active.
Selection is active, but not visible!
if you call JTextPane#grabFocus() you will see selection again.
____________
http://reader.imagero.com the best java image reader.
Christian Kaufhold - 26 Feb 2004 12:51 GMT
> I use a JTextPane but when this component lost focus, the selected text
> disappear.
>
> Does anyone know how to keep the selection active.
Change DefaultCaret.focusLost
Christian