Solved

Hide the Caret in TextArea ?

Posted on 1997-09-06
3
910 Views
Last Modified: 2012-06-27
does anybody knows a way to hide the caret in an TextArea (or
to change color of the caret) ???
I can use setEditable(false) to prevent for editing but the caret still shows up !!!
0
Comment
Question by:mos
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
borup earned 50 total points
ID: 1226512
I do not think it is possible to remove the caret in the TextArea, but try this:

When the TextArea gets the focus you can remove the focus by setting the focus elsewhere in your applet. No focus, no caret!
0
 

Author Comment

by:mos
ID: 1226513
What kind of component you are using if you just wanna
display text (with scrolling) without given the possibility
to modify ???
0
 
LVL 1

Expert Comment

by:borup
ID: 1226514
Sorry. but I haven't heard about such a compenent. If you REALLY want to get rid of the caret, then you maybe should consider making your own compenent. But that is another question, and at that point I can't help you.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now