Article View: borland.public.jbuilder.java.swing
Article #10602Re: jtextfield problem
From: Matt Krevs
Date: Tue, 31 Aug 1999 00:00
Date: Tue, 31 Aug 1999 00:00
29 lines
1260 bytes
1260 bytes
i think
if (jtextfield.getText().equals("")) should also work
raj <rahulgulati@hotmail.com> wrote in message
news:37c88258.0@209.66.99.126...
>
> hi
> i have a jtextfield and a submit button
> if the jtextfield is left blank, and the submit button is hit,
> then it should pop up a message box indicating "blank field"
> now my question is
> how to check if the jtextfield is blank
>
> i m trying if(jtextfield.getText() == "")
> but its not working
>
> can anyone please help me out
>
> thanx
> raj
>
>
>
> -----------------** -- Posted from CodeGuru -- **-----------------
> http://www.codeguru.com/java The website for Java programmers.
>
>
Technical Details
Message-ID:
<7qevis$70s7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37c88258.0@209.66.99.126>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6c48425efbd7acbe X-Google-Attributes: gid111d45,public From: "Matt Krevs" <mattkrevs@bigpond.com.au> Subject: Re: jtextfield problem Date: 1999/08/31 Message-ID: <7qevis$70s7@forums.borland.com> X-Deja-AN: 519054917 References: <37c88258.0@209.66.99.126> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Matt Krevs" <mattkrevs@bigpond.com.au> Newsgroups: borland.public.jbuilder.java.swing