Search code examples
javaswingnetbeansjtextarea

How can i read a text file and diplay it in a netbeans JTextArea?


I'm working in a Netbeans GUI project. All I want to do is to read a text file from a path and display it in a JTextArea using Netbeans. How can I achieve this?

Is there any simple way to do this just using the file path?

Lets say i want this be done after a button click..


Solution