Article View: borland.public.jbuilder.java.language
Article #19335Re: ActionPerformed runs twice??!!??
From: Conrad Hoesle-Kienzlen
Date: Wed, 11 Feb 1998 00:00
Date: Wed, 11 Feb 1998 00:00
40 lines
2344 bytes
2344 bytes
Hi Andrew, that's exactly what I thought myself, but since, I've created a very simple applet with just one button that fires up the very same message dialog (I copied the .java file from the other project) in exactly the same way (the handlers ar created by JBuilder anyway) and it does not come up twice there. I've strained my eyes till they watered and can't find any difference. I am at my wit's end (as usual, with Java). I have extended the message it is displaying to include "e" and "e" is exactly the same event both times. What's more, it says "button1" had fired this event, but the button is not called button1 but btHelp and even if it just takes a generic name from the .class file, it should not be button1 but button2 because there are two buttons (in the sequence of creation) before it. ...Conrad Andrew Bennett wrote: > Conrad Hoesle-Kienzlen wrote: > > > > When the user clicks on the "Help" button, I display a modal message > > dialog with instructions. This works almost too well, since that message > > dialog always appears twice. After I click on the OK button on that > > dialog it vanishes and immediately appears again. The call of the > > message dialog is done through the JBuilder-generated actionPerformed > > handler of the button: > > Could this be because one fires on push down, and the next one fires > at release? > > Andrew > -- > Andrew Bennett > abennett@borland.com > > Due to my workload, personal email more than likely won't get a reply. > Support options are detailed at http://www.borland.com/devsupport/ > I am unable to answer support questions via email at this time. > > Check http://www.borland.com/devsupport/jbuilder/ for FAQs and > additional JBuilder support related help.
Technical Details
Message-ID:
<34E22CD3.85713AA8@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34E1A97E.AF546CDE@csi.com> <34E1D16F.60B1987D@borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,7cde37185d90791a X-Google-Attributes: gidf74b3,public From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com> Subject: Re: ActionPerformed runs twice??!!?? Date: 1998/02/11 Message-ID: <34E22CD3.85713AA8@csi.com> X-Deja-AN: 324257877 Content-Transfer-Encoding: 7bit References: <34E1A97E.AF546CDE@csi.com> <34E1D16F.60B1987D@borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: CHK IT-Consulting Newsgroups: borland.public.jbuilder.java.language