• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I limit my JavaFX textfield max value to 255?  RSS feed

 
Eddie Cross
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what I have:



The above code limits the user to input 3 characters and only numbers [0-9]. How can I set maximum value of the textfield to just 255. Any number input that exceeds 255 should be replaced by 255.
Thanks in advance.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!