Article View: borland.public.jbuilder.java.swing
Article #616Disable a button??
From: Davisote
Date: Fri, 25 Mar 2005 13:24
Date: Fri, 25 Mar 2005 13:24
10 lines
1144 bytes
1144 bytes
Hi. I have a little problem. Just a JTextField and a JButton. if JTextField is null or is blank the JButton must be disabled and when it has something then enable the JButton. What I do is test the length of the JTextField but it doesn't work correctly. Anybody knows how is the correct method to do this?? Thanks
Technical Details
Message-ID:
<42441118@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,cb273dd3cca84955,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Davisote" <yeses@hotmail.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Disable a button?? Date: Fri, 25 Mar 2005 13:24:39 -0000 Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 80.103.163.72 Message-ID: <42441118@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111757080 80.103.163.72 (25 Mar 2005 05:24:40 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail