🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Easy one JTextField

#11659
From: Richard Wilkman
Date: Thu, 15 Apr 1999 00:00
30 lines
1437 bytes
You should also check if it's an empty string.  I don't think you get
null if the user just deletes the text that was there and presses
enter.

-Rich

modulo2@cgocable.net wrote:
> 
> I want to know how to check if a JTextField is Null or not.
> 
> If a user enters some text and then I want to enable a JButton
> if the user backspaces on the same textbox and all the text is goin the
> JButton is Disabled
> 
> thanks

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <37160976.D82F724C@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7f3ckd$ha26@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,9cbda61f5ef07883
X-Google-Attributes: gid111d45,public
From: Richard Wilkman <rwilkman@inprise.com>
Subject: Re: Easy one JTextField
Date: 1999/04/15
Message-ID: <37160976.D82F724C@inprise.com>
X-Deja-AN: 466754148
Content-Transfer-Encoding: 7bit
References: <7f3ckd$ha26@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing