Results 1 to 2 of 2
  1. #1
    devstarter is offline Member
    Join Date
    Mar 2010
    Posts
    6
    Rep Power
    0

    Default jtextfield limit?

    hi

    is it possible to limit the lenght of a JtextField?

    thanks

  2. #2
    camickr is online now Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    Use a DocumentFilter. Read the section from the Swing tutorial on "Text Component Features" for a working example.

Similar Threads

  1. Web services packet limit?
    By poet in forum Advanced Java
    Replies: 1
    Last Post: 10-21-2009, 01:57 AM
  2. Can you Limit JSpinners??
    By ashton in forum New To Java
    Replies: 1
    Last Post: 02-09-2009, 06:10 AM
  3. Replies: 1
    Last Post: 01-30-2009, 06:44 PM
  4. PM Inbox Limit Increased
    By JavaBean in forum Suggestions & Feedback
    Replies: 7
    Last Post: 01-17-2008, 08:48 PM
  5. Limit of String
    By javaplus in forum New To Java
    Replies: 5
    Last Post: 11-19-2007, 04:48 AM

Posting Permissions

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