Results 1 to 3 of 3
  1. #1
    JultomteN is offline Member
    Join Date
    Nov 2011
    Posts
    13
    Rep Power
    0

    Default using only a-z in JTextField

    Hello, can anyone help me with a method that check so you only can type a-z and A-Z in a JTextField. What classes/methods should i check on?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: using only a-z in JTextField

    There's a formatted text field or for just limiting what can be typed a document filter which is attached to the document representing the text in the text field.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: using only a-z in JTextField

    Moved from 'New to Java'

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2011, 05:13 AM
  2. Replies: 0
    Last Post: 08-30-2011, 09:18 AM
  3. JTextField
    By gancio in forum AWT / Swing
    Replies: 20
    Last Post: 08-26-2009, 03:11 PM
  4. Replies: 1
    Last Post: 01-30-2009, 06:44 PM
  5. JtextField
    By kashifu in forum Advanced Java
    Replies: 2
    Last Post: 06-27-2008, 04:25 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
  •