🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Control the Focus!

#8504
From: ross
Date: Thu, 10 Aug 2000 00:00
31 lines
1553 bytes
From Javasoft:
A custom text field can check the user's input either while the user is
typing, or after the user has indicated the end of typing (such as by
pressing return). We call these two types of checking change-validation and
action-validation, respectively.

What you need is a custom TextField, checkout the examples at javasoft
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#combob
ox

See the sample code:  WholeNumberField.java

From Javasoft:
A custom text field can check the user's input either while the user is
typing, or after the user has indicated the end of typing (such as by
pressing return). We call these two types of checking change-validation and
action-validation, respectively.

Ross.

Redarmy <www@usa> wrote in message news:8mtiv3$j6i1@bornews.borland.com...
> i want to add a "mandatory " attribute to a swing control like
JTextFeile.if
> mandatory is true , this contral can't lose focus without value.
>
> my question is how can i do it!
>
>
>
>
>
Technical Details
Message-ID: <3992c973$1_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8mtiv3$j6i1@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,712cdc95ee28343
X-Google-Attributes: gid111d45,public
From: "ross" <rperry@commonvision.com>
Subject: Re: Control the Focus!
Date: 2000/08/10
Message-ID: <3992c973$1_2@dnews>
X-Deja-AN: 656793202
References: <8mtiv3$j6i1@bornews.borland.com>
X-Trace: 10 Aug 2000 08:25:39 -0800, 209.113.90.125
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300