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
Solved

Hide the Caret in TextArea ?

Posted on 1997-09-06
3
918 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Opening PDF on button click and fill new document 2 47
spring jars download 1 35
login form jsp example 2 35
maven disable workspace resolution 1 15
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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:

791 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