Article View: aus.computers.java
Article #861Re: AWT Text fields
From: Paul Murray
Date: Thu, 30 Mar 2000 00:00
Date: Thu, 30 Mar 2000 00:00
20 lines
1523 bytes
1523 bytes
"Windy Mace" <polanNOpoSPAM@pretzel.com.au.invalid> wrote in message news:1149be6e.eb9e8c38@usw-ex0103-024.remarq.com... > Is it possible to select only a specified subset of the text > then? > > Eg tf.selectText(startIndex, endIndex); > > * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * > The fastest and easiest way to search and participate in Usenet - Free! > Don't you have access to the java API doco? I found it straight away: docs/api/javax/swing/text/JTextComponent.html#select(int, int) Both JTextField and JTextArea inherit from JTextComponent. -------------------------------------------------------------- http://www.users.bigpond.com/pmurray ICQ: 26066755
Technical Details
Message-ID:
<WkEE4.44134$oD3.22742@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<danielt-60C06E.15005919032000@news.mel.ihug.com.au> <vEiB4.84$Pl1.7440@nsw.nnrp.telstra.net> <1149be6e.eb9e8c38@usw-ex0103-024.remarq.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,fcce5afc08d9224c X-Google-Attributes: gid10d6db,public From: "Paul Murray" <pmurray@nospam.bigpond.com> Subject: Re: AWT Text fields Date: 2000/03/30 Message-ID: <WkEE4.44134$oD3.22742@newsfeeds.bigpond.com> X-Deja-AN: 604242120 References: <danielt-60C06E.15005919032000@news.mel.ihug.com.au> <vEiB4.84$Pl1.7440@nsw.nnrp.telstra.net> <1149be6e.eb9e8c38@usw-ex0103-024.remarq.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Trace: newsfeeds.bigpond.com 954405302 139.134.124.185 (Thu, 30 Mar 2000 18:35:02 EST) Organization: Telstra BigPond Internet Services (http://www.bigpond.com) X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 30 Mar 2000 18:35:02 EST Newsgroups: aus.computers.java