?
Solved

Hide the Caret in TextArea ?

Posted on 1997-09-06
3
Medium Priority
?
945 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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