| View previous topic :: View next topic |
| Author |
Message |
whirledpeas
Joined: 22 Oct 2009 Posts: 3
|
Posted: Fri Oct 23, 2009 3:05 am Post subject: Clearing a TextField |
|
|
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 |
|
 |
Ernie Rael Posted via mailing list.
|
Posted: Fri Oct 23, 2009 6:37 pm Post subject: Clearing a TextField |
|
|
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
|
Posted: Sat Oct 24, 2009 2:15 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
|
|
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
|
|
|
|