Results 1 to 2 of 2
  1. #1
    fuzzdn is offline Member
    Join Date
    Dec 2010
    Posts
    10
    Rep Power
    0

    Default JTextfield only allow specific chars

    How can I get a JTextfield to only allow the input of characters "0123456789+-/*. ()^"

    Im hoping there's a nice simple answer that I just don't know or have easily missed.

    Thanks for any help :)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. List of chars
    By SwEeTAcTioN in forum New To Java
    Replies: 8
    Last Post: 01-05-2010, 12:05 PM
  2. Replacing the chars within a string.
    By Mayur in forum New To Java
    Replies: 2
    Last Post: 03-27-2009, 04:00 AM
  3. Replies: 1
    Last Post: 01-30-2009, 06:44 PM
  4. Replies: 2
    Last Post: 11-08-2008, 10:40 AM
  5. chars
    By whosadork in forum New To Java
    Replies: 6
    Last Post: 10-03-2008, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •