🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7720

Type Recorder / Writer

#7720
From: Mike Linz
Date: Wed, 30 May 2001 18:23
24 lines
1801 bytes
Hi!
I've got the following Problem:

I want to have a kind of input field for text, which records EVERYthing the
user does here, including moving the cursor around, del, backspace, shift+?,
like i said ->everything!
I want to store this information somwhere to play it back later.

I tried using:

JTextPane with a keyevent and
e.getKeyCode() to get the code i hope i could use to store,
but I find no way of converting this keycode back to
the original behaviour. Instead of backspace and delete
i got strange characters?!!

so this is wrong:
 c = new Character((char)e.getKeyCode());
 jTextPane2.setText(String.valueOf(c));

Does anybody now how to make this work?

Thank u in advance,
Mike
Technical Details
Message-ID: <9f3e3s$e41$03$2@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!newsfeed2.skycache.com!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,893050b332b6f8bc,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-30 11:36:53 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!newsfeed2.skycache.com!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Mike Linz" <mi7714@fh-wedel.de>
Newsgroups: borland.public.jbuilder.java.language
Subject: Type Recorder / Writer
Date: Wed, 30 May 2001 20:23:24 +0200
Organization: T-Online
Lines: 31
Message-ID: <9f3e3s$e41$03$2@news.t-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 991247293 03 14465 wTWBSSibTaHVPt 010530 18:28:13
X-Complaints-To: abuse@t-online.com
X-Sender: 0410315921-0001@t-dialin.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400