File displaying

I need to open a good-old plain text file. It has nothing fancy in it; just text. I'd like to do it in a JTextArea or something similar. How do I do that?
[162 byte] By [lgarcia3a] at [2007-10-2 4:38:16]
# 1

The easiest way is to use JTextComponent's read() method:

// (Error handling excluded)

JTextArea textArea = ...

File file = ...

FileReader reader = new FileReader(file);

textArea.read(reader, null);

happy_hippoa at 2007-7-16 0:11:17 > top of Java-index,Java Essentials,Java Programming...