The Artima Developer Community
Sponsored Link

Java Answers Forum
Can't select all text

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Can't select all text Posted: Jan 20, 2005 2:13 AM
Reply to this message Reply
Advertisement
I'm using a JFormattedTextfield and want the whole content to be selected if it gains focus.

But I just can't make it work.

the commands selectAll(), setSelectionStart(int) and setSelectionEnd(int) don't have any effect.

I tried putting them in a FocusListener, but nothing happens.

Does anyone know how to fix this?

Topic: Java Launcher 2.4 released Previous Topic   Next Topic Topic: Code termFreq, documents in Lucene

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use