介绍几种方法将Excel格式的文件导入到JTable中

介绍几种方法将Excel格式的文件导入到JTable中


How to import Excel file into JTable
Here are three way to do this.Use "JTableReadTableModelTask " to do this. ( recommended )Use "ReadTableModelTask" to do thisUse ModelIO to do this.
The first and second the way will run in the background thread, the third way will run in current thread.
1. Use "JTableReadTableModelTask "to do this. (recommended)
Here is the sample code to import excel file: JTable jTable = new JTable();
String excelFileName = "excelFileNa

你可能感兴趣的:(介绍几种方法将Excel格式的文件导入到JTable中)