🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Cell editing in JTable question.

#10636
From: Kevin O'Sullivan
Date: Mon, 23 Aug 1999 00:00
17 lines
1111 bytes
Hi,
I was wondering if there is a way to enhance the cell editing method for a
JTable.

What I want to happen is:
User navigates to cell using cursor keys.  (yea, this bit is working)
As soon as user starts typing, text which was previously in the cell is
deleted and replaced by what the user starts to type.
i.e. Instead of appending the new text to the existing text, it should
replace it.

Any suggestions?  Is there a simple property I can set (oh joy of joy!) or
do I need to start listening for various events and subclass cell editors
etc etc...

Thanks in advance,
Kevin.
Technical Details
Message-ID: <7pspe9$has30@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,940dd7d0cbfa11ea,start
X-Google-Attributes: gid111d45,public
From: "Kevin O'Sullivan" <kosullivan@elandtech.com>
Subject: Cell editing in JTable question.
Date: 1999/08/23
Message-ID: <7pspe9$has30@forums.borland.com>
X-Deja-AN: 516387513
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing