jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes how to copy a file to text area Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to copy a file to text area" Watch "how to copy a file to text area" New topic
Author

how to copy a file to text area

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi
iam doing a small code using swings
i was stucked at how to copy contents of file to text area

can anybody help me

thanx in advance
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

What do you have so far? Are you able to read the file?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130
Hi,

You can simply use file IO to read from the specified file and you can have a String object of whatever stored in that file.


Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
How does this relate to the Sun Certified Java Programmers Exam?


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Marcus Green:
How does this relate to the Sun Certified Java Programmers Exam?

You're right. Moving to Java in General (Beginner)...
 
 
subject: how to copy a file to text area
 
Similar Threads
how to print the text in text area
textarea and conditional READONLY
Help about JTextArea in applet!
how to handle the text which is copied from doc file
Using UTF-8 encoding for jsp textarea field instead HTML encoding