Results 1 to 3 of 3
  1. #1
    kkid is offline Senior Member
    Join Date
    Jul 2012
    Posts
    226
    Rep Power
    3

    Default Making JTextArea uneditable

    How can I make a JTextArea uneditable?

    Is there a method related to JTextAreas which can do this?

    I have had a look but can't see one.

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    5

    Default Re: Making JTextArea uneditable

    area.setEditable(false); ???


  3. #3
    kkid is offline Senior Member
    Join Date
    Jul 2012
    Posts
    226
    Rep Power
    3

    Default Re: Making JTextArea uneditable

    Quote Originally Posted by eRaaaa View Post
    area.setEditable(false); ???

    oh yeah,

    I was making a silly mistake.

    What i was doing was trying to set the JFrame that the JTextArea was in as uneditable, hence why I couldn't find the method.

    Thanks

Similar Threads

  1. JTextArea Help
    By gavin.87 in forum Java Gaming
    Replies: 1
    Last Post: 04-11-2012, 05:28 PM
  2. Using JTextArea
    By tnixon22 in forum New To Java
    Replies: 10
    Last Post: 01-23-2011, 07:01 PM
  3. Making a portion of JTextArea uneditable
    By nik_meback in forum AWT / Swing
    Replies: 1
    Last Post: 12-15-2010, 01:38 PM
  4. JTextArea on PopUp -JTextArea isn't editable
    By Richy76 in forum AWT / Swing
    Replies: 3
    Last Post: 02-01-2010, 07:51 PM
  5. TextArea additable and uneditable (copy/past problem)
    By qwerty55 in forum Advanced Java
    Replies: 0
    Last Post: 01-19-2008, 11:41 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
  •