how to import a Text file content to a JTextArea in a Java application using JFileChooser?
To import the contents of a file into a JTextArea you simply follow these steps!
The above steps are good enough to perform your task. However, when you give it a try, i would edit my post and add a possible solution.
NB: You must note that when you select a file with a JFileChooser, it returns an Object of type File. You should then use the getName() method provided by the File class to get the name of the file.
Links that might be of help!
JFileChooser
File
Java tutorials on how to use the JFileChooser