FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Clearing a TextField

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
whirledpeas



Joined: 22 Oct 2009
Posts: 3

PostPosted: Fri Oct 23, 2009 3:05 am    Post subject: Clearing a TextField Reply with quote

Hi all,

I am new to this Forum. I've been using Netbeans 6.5 for a few months now, and I like it. But I am trying to figure out how to clear a textfield when someone clicks a button.

I tried setText(""); setValue(""); setText(null); setValue(null); in the button
callback, but none seem to work except for the very first time.
Seems like this would be very easy to accomplish, but it seems to
ignore my attempts to clear it.

Thanks.
Back to top
View user's profile Send private message
Ernie Rael
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 6:37 pm    Post subject: Clearing a TextField Reply with quote

This list is for discussion and planning of NetBeans IDE itself, not using NB. See http://www.netbeans.org/community/lists/top.html
Quote:
address-removed ([email]address-removed[/email]) The NetBeans users mailing list. General discussion of NetBeans use, this is the place to ask for help and to help others.
Recommended for : General support and discussion, for NetBeans users of all levels.
Though this question sounds like a basic java/swing issue, not a NetBeans issue, and a basic java forum may be most appropriate.

-ernie

On 10/22/2009 8:05 PM, whirledpeas wrote:
Quote:
Quote:
Hi all,



I am new to this Forum. I've been using Netbeans 6.5 for a few months now, and I like it. But I am trying to figure out how to clear a textfield when someone clicks a button.



I tried setText(""); setValue(""); setText(null); setValue(null); in the button

callback, but none seem to work except for the very first time.

Seems like this would be very easy to accomplish, but it seems to

ignore my attempts to clear it.



Thanks.






Back to top
whirledpeas



Joined: 22 Oct 2009
Posts: 3

PostPosted: Sat Oct 24, 2009 2:15 am    Post subject: Reply with quote

Not quite. It is a question about a JSF component provided by Netbeans.
It has nothing to do with Swing.

However, I think you are saying that I need to post to a different
discussion forum than this. I will do so. Sure looks like a number of other
questions fit into the same theme as mine. Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB