Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

highlight text in JTextArea

Status
Not open for further replies.

Raywall

Programmer
Oct 1, 2003
51
RO
I'm selecting text from a JTextArea from my code with
setSelectionStart()
and
setSelectionEnd() which is working just fine
The problem is that the text selected is not visible so please tell me how can I highlight the selection I've made.
Thanks...
 
It's not working...already tried this.
 
Err ... I need to fix this problem in 1-2 hours... please guys HELP :)
 
requestFocus() solved the problem.
I should thank myself for the valuable post
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top