Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Hide the Caret in TextArea ?

Posted on 1997-09-06
3
Medium Priority
?
951 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
borup earned 100 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.
Suggested Courses

609 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