🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

adding a global mouse listener

#7762
From: Guido Paschke
Date: Fri, 15 Dec 2000 08:41
15 lines
1551 bytes
Hi,

my JFrame consists of a JMenuBar, a JPanel which acts as a statusbar (SOUTH)
and a JSplitPane in the center. The statusbar extends MouseAdapter and I add
the mouse listener to the JRootPane of the JFrame
(this.getRootPane.addMouseListener (statusBar). Now my problem is if I click
on the JMenuBar (NOT on a menu) or on the statusbar the statusbar receives
the MouseEvent but if I click on anywhere on the JSplitPane it didn't!!!!
Is there any solution so that the statusbar receive the clicks. I already
added the mouse listener to the JSplitPane but this didn't worked either.

Do I have to add the mouse listener to all components?

thanks a lot
Guido
Technical Details
Message-ID: <91clrj$8d117@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b7afbfb28849a6b9,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-12-15 00:48:44 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: "Guido Paschke" <paschke@werum.de>
Newsgroups: borland.public.jbuilder.java.swing
Subject: adding a global mouse listener
Date: Fri, 15 Dec 2000 09:41:23 +0100
Organization: Another Netscape Collabra Server User
Lines: 20
Message-ID: <91clrj$8d117@bornews.inprise.com>
NNTP-Posting-Host: gehe-254.Hamburg.uunet.de
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211