Jan 22, 2008 #1 sallyrose Technical User Jan 22, 2008 2 US I am writing a program and only want it to accept certain integers. How do I do this?
Jan 30, 2008 #2 prosper Programmer Sep 4, 2001 631 HK if you use swing and JTextField for input gui, you can use input mask. You can use JSpinner too. http://www.ibm.com/developerworks/java/library/j-mer0625/?Open&t=grj,l=766,p=Jformat Upvote 0 Downvote
if you use swing and JTextField for input gui, you can use input mask. You can use JSpinner too. http://www.ibm.com/developerworks/java/library/j-mer0625/?Open&t=grj,l=766,p=Jformat
Feb 6, 2008 #3 Diancecht Programmer Jan 8, 2004 4,042 ES Are ew talking about J2EE or J2SE? Cheers, Dian Upvote 0 Downvote