🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

MouseClicked comes twice

#11914
From: George Tryfon
Date: Mon, 15 Mar 1999 00:00
23 lines
1066 bytes
-------------------------
| JComboBox    |\/|
-------------------------

      [JLabel]

I have the above construction:
A JComboBox on the top of a JLabel.
The JLabel has a MouseListener and takes mouseClicked.

I drop the JComboBox to open.
Then using the mouse I click an item of the JComboBox that covers the
JLabel.
The JComboBox is selected ok, but the JLabel takes the mouseClick also
(I do not wont to click the JLabel, I only want to select from the
JComboBox)

Is this a bag from the swing ?
Any posible ways to work it around ?

Thank you in advance
George Tryfon
george@compucon.gr
Technical Details
Message-ID: <7cic87$l315@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,83d591b735dedb48,start
X-Google-Attributes: gid111d45,public
From: "George Tryfon" <george@compucon.gr>
Subject: MouseClicked comes twice
Date: 1999/03/15
Message-ID: <7cic87$l315@forums.borland.com>
X-Deja-AN: 455126693
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing