Article View: borland.public.jbuilder.java.swing
Article #1736Anyone seen this problem
From: Mark Seaborn
Date: Tue, 26 Aug 2003 13:46
Date: Tue, 26 Aug 2003 13:46
7 lines
1647 bytes
1647 bytes
Maybe I am being stupid, but I am having difficulty getting mouse events from a custom JComponent. At this point I have put an instance of a subclass of JComponent in a JScrollPane and placed it in the center of a BorderLayout. I then added a mouse listener to the subclass of JComponent, traced through the code to make sure I am acutally adding the listener, but my mouseClicked(), mousePressed() and mouseReleased() methods on my listener class are not called. Any one seen this problem before.
Technical Details
Message-ID:
<bifoej$8dc$1@newshost.mot.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed2.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a50a1a49d8308c49,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-08-26 06:49:30 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed2.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!not-for-mail From: "Mark Seaborn" <mseaborn62@hotmail.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Anyone seen this problem Date: Tue, 26 Aug 2003 08:46:45 -0500 Organization: Motorola Lines: 9 Message-ID: <bifoej$8dc$1@newshost.mot.com> NNTP-Posting-Host: wt6528.comm.mot.com X-Trace: newshost.mot.com 1061905683 8620 173.38.4.182 (26 Aug 2003 13:48:03 GMT) X-Complaints-To: motpost1@azmsg.mot.com NNTP-Posting-Date: 26 Aug 2003 13:48:03 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800