🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: valueChange event in the JTable

#9258
From: Paul Furbacher
Date: Sun, 07 May 2000 00:00
23 lines
1396 bytes
Ilia Gilderman wrote:

> I have registered selection listener for the JTable when I actually
> selecting a row I got
> two events first with adjusting value is true and the second with false. Why
> it happens?
> How can I configure it to get only one event?

It's common that for a single action, an event will 
fire multiple times, once each for each relevant state
change.  In many cases, this makes it possible for you 
to do things prior to, and after, the actual handling 
of the event by underlying classes.


You don't "configure" anything.  What you do
is to write code in your event handler which inspects
the relevant status, and acts on the status value you
are interested in, and does nothing for those for which
you aren't interested.


Paul Furbacher (TeamB)
Technical Details
Message-ID: <39159C5F.C6343D24@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39150c23@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1f99176175b1c82d
X-Google-Attributes: gid111d45,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: valueChange event in the JTable
Date: 2000/05/07
Message-ID: <39159C5F.C6343D24@bilbo.bio.purdue.edu>
X-Deja-AN: 620318288
Content-Transfer-Encoding: 7bit
References: <39150c23@dnews>
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.swing