Results 1 to 3 of 3
  1. #1
    javanew is offline Member
    Join Date
    Mar 2010
    Rep Power

    Default disapling text fields

    how to disable a text field ?????????

  2. #2
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Rep Power


    Check out the JTextField API and search for a method that contains the word "enabled" (you may have to look into the methods from one of its parent classes -- JComponent). Do this, and I guarantee you'll find something that will work.

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Zurich, Switzerland
    Rep Power


    the jtextfield has a method called setEditable(boolean) where you can use to disable the textfield.

Similar Threads

  1. Populating the values in text fields
    By Inaam in forum Web Frameworks
    Replies: 2
    Last Post: 07-26-2010, 09:55 AM
  2. searching a row using text fields
    By bigj in forum New To Java
    Replies: 1
    Last Post: 02-03-2010, 12:28 PM
  3. Problem With Text Fields!
    By freshoreo in forum AWT / Swing
    Replies: 3
    Last Post: 08-04-2008, 10:52 PM
  4. Demonstration of text fields in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 03:20 PM
  5. Help with text fields in Java
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:29 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