Article View: borland.public.jbuilder.java.swing
Article #11248Windows L&F JButton doesn't "feel" like Windows
From: Jason Burton
Date: Tue, 22 Jun 1999 00:00
Date: Tue, 22 Jun 1999 00:00
16 lines
1273 bytes
1273 bytes
Anybody come up with a workaround for the lack of responsiveness of JButtons? When they are clicked, sometimes the don't trigger the ActionListener sometimes. I suspect that it has something to do with mouse movement between the mouse press and mouse release. With a native Windows button you can mouse down on the button, move the cursor anywhere, return the mouse to any position on the button, mouse up, and it triggered a click event. With Swing, it seems that if you move the mouse just one pixel between mouse press and release, the ActionListener will not be triggered. I imagine Swing is trying to translate this as a drag-and-drop, but it really shouldn't (at least in Windows L&F). Any suggestions? Thanks, Jason
Technical Details
Message-ID:
<7ko9bu$83p4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,dbafd083b6f05a3b,start X-Google-Attributes: gid111d45,public From: "Jason Burton" <Jason.Burton@McLeodSoftware.com> Subject: Windows L&F JButton doesn't "feel" like Windows Date: 1999/06/22 Message-ID: <7ko9bu$83p4@forums.borland.com> X-Deja-AN: 492542293 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing