File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Selction text vanishes in textpane!!!!...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Selction text vanishes in textpane!!!!......" Watch "Selction text vanishes in textpane!!!!......" New topic

Selction text vanishes in textpane!!!!......

Basanth P Rangadhol

Joined: Nov 22, 2004
Posts: 13
the selected text in textpane(JTextPane) gets deselected oncer the focus is shifted to other components like menu(JMenu). but, i want to display the selected text while some menu is selected, as in any word editor... please, help.

Imagination is more important than knowledge - Einstien.
I agree. Here's the link:
subject: Selction text vanishes in textpane!!!!......
It's not a secret anymore!