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


Groups > comp.lang.java.programmer > #31608 > unrolled thread

Re: how to hide and show cursor in JTextField?

Started bykarthi.udupi@gmail.com
First post2015-04-22 05:29 -0700
Last post2015-04-22 09:03 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#31608 — Re: how to hide and show cursor in JTextField?

Fromkarthi.udupi@gmail.com
Date2015-04-22 05:29 -0700
SubjectRe: how to hide and show cursor in JTextField?
Message-ID<4fa86659-492f-453f-9981-7b71525dc56f@googlegroups.com>
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());

[toc] | [next] | [standalone]


#31609

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2015-04-22 09:03 -0400
Message-ID<mh864b$thm$1@dont-email.me>
In reply to#31608
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web