Read / write program in Java using JFileChooser
Posted
by Casper Marcussen
on Stack Overflow
See other posts from Stack Overflow
or by Casper Marcussen
Published on 2010-05-08T19:31:46Z
Indexed on
2010/05/08
19:48 UTC
Read the original article
Hit count: 353
Didn't want to bother people in here, but since I am under a time pressure, I am desperate to get help. My questions is how to link the file choosen from a JFileChooser to a file, and how to convert it to string being able to display and edit it in a TextArea.
I have the GUI set up using swing, but the link between actionListener and the JFileChooser is not complete.
Any help would be much appreciated.
Code: http://pastebin.com/p3fb17Wi
EDIT: I found this program, that does pretty much what i wanted to, but it does not allow me to save the actual file : http://www.java-forums.org/new-java/8856-how-get-content-text-file-write-jtextarea.html
© Stack Overflow or respective owner