Article View: borland.public.jbuilder.java.swing
Article #8090Re: InputVerifier Dilemas
From: James Cook
Date: Mon, 23 Oct 2000 00:00
Date: Mon, 23 Oct 2000 00:00
39 lines
2226 bytes
2226 bytes
John, Have you (or anyone else!?) ever successfully used InputVerifier's on a project. Outside the two text field example included in the JavaDoc, this is a completely useless class. I'm not busting your chops, I have submitted this behavior to Sun as a bug. I would just love to know how they expected this class to work. No book author has ventured forth any ideas. Thought some of our super-users mey have an idea. Some guy on deja demonstrated how you can subclass some JComponents (JButton, JCheckbox) and override their actionPerformed to include a check to make sure that the component has focus before firing the event. This is fine, but we have a real GUI in place with JTrees, JTables, Menus, combo boxes, etc. Not to mention that subclassing all of these components is a real pain and makes development more cumbersome. In all actuality, it may be the lesser of two evils. jim "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.1459bad4d9e0ffc989c53@forums.borland.com... > On Thu, 19 Oct 2000 08:21:56 -0400, James Cook wrote: > > > It is perfectly within the Swing architects realm of > > possibility to consume any outstanding mouse events > > *before* focus shifts from a JComponent with an > > InputVerifier. > > I think the focus shift is triggered by the component in response to the > mouse event. So the event has already been delivered. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<39f43260_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39eda692$1_2@dnews> <ubswhpbt3.fsf@sds.no> <39eee503$1_2@dnews> <MPG.1459bad4d9e0ffc989c53@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a228099bd5ee00b0 X-Google-Attributes: gid111d45,public From: "James Cook" <jimcook.remove.for.spam@iname.com> Subject: Re: InputVerifier Dilemas Date: 2000/10/23 Message-ID: <39f43260_1@dnews> X-Deja-AN: 684789811 References: <39eda692$1_2@dnews> <ubswhpbt3.fsf@sds.no> <39eee503$1_2@dnews> <MPG.1459bad4d9e0ffc989c53@forums.borland.com> X-Trace: 23 Oct 2000 05:43:12 -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