Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31609

Re: how to hide and show cursor in JTextField?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: how to hide and show cursor in JTextField?
Date 2015-04-22 09:03 -0400
Organization A noiseless patient Spider
Message-ID <mh864b$thm$1@dont-email.me> (permalink)
References <7a39a4f2-c587-4f1a-83e4-59756ca30471@i72g2000hsd.googlegroups.com> <4fa86659-492f-453f-9981-7b71525dc56f@googlegroups.com>

Show all headers | View raw


On 4/22/2015 8:29 AM, karthi.udupi@gmail.com wrote:
> On Friday, 4 January 2008 06:35:36 UTC+5:30, Roy  wrote:
>> Hi,
>>
>> Is there any way to hide the cursor in the JTextField and show the
>> cursor when I click this field?  It'd be great if I click other area
>> or components in the panel, hide the cursor in the JTextField again.
>>
>> Thanks a lot.
>> Roy
>
> Other option might be
>
> JTextArea.setCaretColor(getBackground());

     "Let's Do The Time Warp Again!"

     (It must be admitted, though, that Karthi's answer to a seven-year-
old question is not in the same league as someone else's recent answer
to an *eighteen-year-old* question.)

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: how to hide and show cursor in JTextField? karthi.udupi@gmail.com - 2015-04-22 05:29 -0700
  Re: how to hide and show cursor in JTextField? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-04-22 09:03 -0400

csiph-web