Results 1 to 3 of 3
  1. #1
    alinaqvi90 is offline Member
    Join Date
    May 2010
    Posts
    32
    Rep Power
    0

    Default making TextField component read-only but not grey

    Hi guys I am using -> java.awt.TextField
    and would like to restrict the user from changing any values in the field without greying out the component (as its difficult to read the displayed text within the field.)


    Is there any way of doing it?


    many thanks
    ali

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

    Default

    setEditable(...)

    db

  3. #3
    alinaqvi90 is offline Member
    Join Date
    May 2010
    Posts
    32
    Rep Power
    0

Similar Threads

  1. Replies: 3
    Last Post: 03-03-2011, 04:59 PM
  2. Replies: 3
    Last Post: 04-09-2010, 04:06 AM
  3. Replies: 15
    Last Post: 03-18-2009, 10:59 PM
  4. Grey Box
    By mja229 in forum New To Java
    Replies: 2
    Last Post: 12-24-2008, 07:24 PM
  5. Replies: 5
    Last Post: 10-17-2008, 02:13 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
  •