🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7724

Re: JTextField Question

#7724
From: Tor Iver Wilhelmsen
Date: Fri, 05 Jan 2001 07:54
8 lines
1069 bytes
"James A. Schulz" <jaschulz@wiseware.com> writes:

> I need to (programatically) insert a single character in the text of
> a JTextField (at the current caret position) but I can't see how to
> do this.  Can anyone help?

getDocument().insertString() at the position returned by
getCaretPosition().
Technical Details
Message-ID: <uvgrucu3d.fsf@sds.no>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
References: <932stj$a3d7@bornews.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5384f362d6ac411f
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-05 00:02:02 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JTextField Question
Date: 05 Jan 2001 08:54:14 +0100
Organization: Another Netscape Collabra Server User
Lines: 8
Sender: towi@SDSA1761
Message-ID: <uvgrucu3d.fsf@sds.no>
References: <932stj$a3d7@bornews.inprise.com>
NNTP-Posting-Host: pc4-252.sds.no
X-Newsreader: Gnus v5.5/Emacs 20.3