🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable / Properties Editor

#8097
From: John McGrath TeamB
Date: Tue, 24 Oct 2000 00:00
21 lines
1199 bytes
On Mon, 23 Oct 2000 11:51:36 -0400, Craig Lee wrote:

> I'm trying to recreate a JTable similar to the Properties
> Editor in JBuilder and other IDEs.  I have found the samples
> that show how to setup the CellEditor and Renderer for a
> column (allow JComboBox for instance for a particular column);
> however, I want to have separate types in the "values" side.
> Any suggestions?

Override the JTable getCellRenderer(row,col) and getCellEditor(row,col) 
methods, and return the renderer / editor appropriate for the specified 
row.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.145f05bc3c864882989c75@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8t1m6s$qoo2@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,45ae379fa3c3609c
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JTable / Properties Editor
Date: 2000/10/24
Message-ID: <MPG.145f05bc3c864882989c75@forums.borland.com>
X-Deja-AN: 685148717
References: <8t1m6s$qoo2@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing