Article View: borland.public.jbuilder.java.swing
Article #7887Re: InputVerifier and JButtons
From: James Cook
Date: Wed, 06 Dec 2000 00:00
Date: Wed, 06 Dec 2000 00:00
26 lines
1420 bytes
1420 bytes
You can't...without substantial workarounds. InputVerifier is a joke on the Java developer community. It isn't even close to working in a "real" GUI. There are no alternatives either. Try clicking on a checkbox, or a tree node, or anything. The event will always trigger. jim "Ernesto Bascon Pantoja" <bascone@ucbcba.edu.bo> wrote in message news:3A2EB753.3020108@ucbcba.edu.bo... > Hi: > > I have a JFrame with several JTextFields each one with its respective > InputVerifier instances. I added several JButtons to my JFrame (e.g. > "Yes", "No", "Cancel", "Next", etc.). > > Well, when I have wrong values in a JTextField and I press any JButton, > the button's actionEvent no matter if the inputVerifier's verify() > function returns false. > > How can I do to help executing the JButton's ActionPerformed method? > > Thanks in advance > > > Ernesto >
Technical Details
Message-ID:
<3a2ebec6$1_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3A2EB753.3020108@ucbcba.edu.bo>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6af886dca9bf2ee7 X-Google-Attributes: gid111d45,public From: "James Cook" <jimcook.remove.for.spam@iname.com> Subject: Re: InputVerifier and JButtons Date: 2000/12/06 Message-ID: <3a2ebec6$1_1@dnews> X-Deja-AN: 701939739 References: <3A2EB753.3020108@ucbcba.edu.bo> X-Trace: 6 Dec 2000 14:33:42 -0800, 156.63.133.8 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400