🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable and Dialog

#7956
From: John McGrath TeamB
Date: Wed, 15 Nov 2000 00:00
23 lines
1308 bytes
On Tue, 14 Nov 2000 11:02:01 -0800, rp wrote:

> I need to show a dialog that has a textarea on it when the
> user double clicks or right clicks on a table cell that has
> an icon in it but represents a large amount of text. Should
> I make the cell editable so that I can use a custom cell
> editor and then just return from the setValueAt() method
> (the data is readonly), or can I register a mouse listener
> on the JTable and somehow determine what cell was double
> clicked on?

You could use the mouseListener approach, but that is essentially 
what the CellEditor mechanism does, but it does some of the work for 
you.  I would try the CellEditor approach.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.147bfa915d69ac9989d20@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3a118c33$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,750aa626133614f8
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JTable and Dialog
Date: 2000/11/15
Message-ID: <MPG.147bfa915d69ac9989d20@forums.borland.com>
X-Deja-AN: 693815356
References: <3a118c33$1_1@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing