The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

controlling text fields

Posted by Hasan Saleem on October 26, 2001 at 6:06 PM

> unless the field is filled with a number.

The simplest is to getText() and check if it is null or equals "". If you want the field to only allow integers then you need to control the insert string method in the text field's model.
Regards,
Hasan
SCJP, SCJD
Moderator JViews: Java job interviews and tips online discussion forum. http://groups.yahoo.com/group/JViews



Replies:
  • innovative Chin Loong October 27, 2001 at 2:26 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us