🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Consuming events

#45
From: Dale Cooper
Date: Mon, 03 Jan 2000 00:00
37 lines
1931 bytes
--------------46BB80DEA90B4718F260DA4F
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit

Hallo everyone in new year.

I have kind of interesting problem. I have a combo and under the combo
are buttons. For a few buttons I need to check CTRL state so that they
consume the click by mouseClicked event and not by actionPerformed. And
this is where the trouble is:
When I select an item from the combo the applet serves BOTH events - the
combo (actionPerformed) and the underlying button event (mouseClicked).

How can I avoid this?

Thanks,
Dale

--------------46BB80DEA90B4718F260DA4F
Content-Type: text/html; charset=iso-8859-2
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hallo everyone in new year.
<p>I have kind of interesting problem. I have a combo and under the combo
are buttons. For a few buttons I need to check CTRL state so that they
consume the click by <i>mouseClicked</i> event and not by <i>actionPerformed</i>.
And this is where the trouble is:
<br>When I select an item from the combo the applet serves BOTH events
- the combo (actionPerformed) and the underlying button event (mouseClicked).
<p>How can I avoid this?
<p>Thanks,
<br>Dale</html>

--------------46BB80DEA90B4718F260DA4F--
Technical Details
Message-ID: <38708565.61B2626@cooper.cz>
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,f4c26129c5e1f076,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: f74b3,f4c26129c5e1f076,start
X-Google-Attributes: gidf74b3,public
From: Dale Cooper <dale@cooper.cz>
Subject: Consuming events
Date: 2000/01/03
Message-ID: <38708565.61B2626@cooper.cz>
X-Deja-AN: 567709670
X-Accept-Language: cs,en
Content-Type: multipart/alternative; boundary="------------46BB80DEA90B4718F260DA4F"
Organization: Twin Peaks
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.java.language