The Artima Developer Community
Sponsored Link

Java Answers Forum
load text to textarea

1 reply on 1 page. Most recent reply: Sep 18, 2006 5:29 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
pedram pedram

Posts: 1
Nickname: pedramjava
Registered: Sep, 2006

load text to textarea Posted: Sep 15, 2006 11:42 AM
Reply to this message Reply
Advertisement
Hi all, I want to read the txt file and view the text in a textarea which is inside a panel? by the way I "don’t" want to give the ability to the user to change the text that will appear on the textarea? thank you


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: load text to textarea Posted: Sep 18, 2006 5:29 AM
Reply to this message Reply
Read the file as usual (BufferedReader, ... and append the lines to the textarea.)

Just set the "editable" option of the text area, if you don't want the user to be able to edit the textarea.

Flat View: This topic has 1 reply on 1 page
Topic: thread priority Previous Topic   Next Topic Topic: setting Windows screen resolution from Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use