Question: how to import text file data to jtable in java?
Answer: private void jButtonImportActionPerformed(java.awt.event.ActionEvent evt) {
String filePath = "C:\\Users\\Desktop\\table.txt";
File file = new File(filePath);
try {
BufferedReader br = new BufferedReader(new FileReader(file));
String firstLine = br.readLine().trim();