'Locking' JTextArea


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: 'Locking' JTextArea

  1. #1
    Join Date
    May 2005
    Posts
    115

    'Locking' JTextArea

    I have a JTextArea which displays and series of data and results.

    How do i 'lock' a JTextArea so that the user can't type and edit the contents of the textarea?

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    txtArea.setEditable(false)
    eschew obfuscation

Similar Threads

  1. Re: answer to myself RE locking problem
    By mgergZ in forum VB Classic
    Replies: 0
    Last Post: 02-15-2001, 02:26 AM
  2. Replies: 0
    Last Post: 02-14-2001, 06:59 PM
  3. Re: further to locking problem
    By mgergZ in forum VB Classic
    Replies: 0
    Last Post: 02-11-2001, 08:34 PM
  4. Locking question
    By Igor in forum VB Classic
    Replies: 3
    Last Post: 01-03-2001, 04:59 PM
  5. ShowMessageDialog from JTextArea
    By Huiyuanm in forum Java
    Replies: 1
    Last Post: 03-22-2000, 09:03 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center