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?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: how to hide and show cursor in JTextField?
Date Wed, 22 Apr 2015 09:03:01 -0400
Organization A noiseless patient Spider
Lines 24
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>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 22 Apr 2015 13:02:03 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="858a9d65d95f4ea4d355bd116aa2cdbf"; logging-data="30262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cJIJfMWnmD/RZR2YgvguR"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
In-Reply-To <4fa86659-492f-453f-9981-7b71525dc56f@googlegroups.com>
Cancel-Lock sha1:C3DwQ1HsSTwqfwX3UFTR2ylN9rw=
Xref csiph.com comp.lang.java.programmer:31609

Show key headers only | 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