🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows L&F JButton doesn't "feel" like Windows

#11222
From: Alexis Rios
Date: Wed, 30 Jun 1999 00:00
24 lines
1532 bytes
Hi..use ActionPerformed action instead of the MouseClicked (Mouse can't be
moved here)
Jason Burton <Jason.Burton@McLeodSoftware.com> wrote in message
news:7ko9bu$83p4@forums.borland.com...
> 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: <7lc5qe$qhi11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7ko9bu$83p4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,dbafd083b6f05a3b
X-Google-Attributes: gid111d45,public
From: "Alexis Rios" <alexr@coqui.net>
Subject: Re: Windows L&F JButton doesn't "feel" like Windows
Date: 1999/06/30
Message-ID: <7lc5qe$qhi11@forums.borland.com>
X-Deja-AN: 495473561
References: <7ko9bu$83p4@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing