Discussion:
How to import Excel file into JTable?
(too old to reply)
z***@gmail.com
2008-05-10 00:50:28 UTC
Permalink
Here are three way to do this.

1. Use "JTableReadTableModelTask " to do this. ( recommended )
2. Use "ReadTableModelTask" to do this
3. Use ModelIO to do this.

For details: http://www.zfqjava.com/article/How-to-import-excel-into-JTabel.html
Jeff Higgins
2008-05-16 09:01:52 UTC
Permalink
Post by z***@gmail.com
Here are three way to do this.
1. Use "JTableReadTableModelTask " to do this. ( recommended )
2. Use "ReadTableModelTask" to do this
3. Use ModelIO to do this.
Welcome to the [snip] Component web site.
Here you will find product information,
evaluation versions and
document resources for
our range of development products.
b***@gmail.com
2016-02-10 18:34:36 UTC
Permalink
Post by z***@gmail.com
Here are three way to do this.
1. Use "JTableReadTableModelTask " to do this. ( recommended )
2. Use "ReadTableModelTask" to do this
3. Use ModelIO to do this.
For details: http://www.zfqjava.com/article/How-to-import-excel-into-JTabel.html
Hi,
Where can i download the jar contains "JTableReadTableModelTask "? Thank you
Hasan Diwan
2016-04-21 05:57:15 UTC
Permalink
Post by b***@gmail.com
Post by z***@gmail.com
Here are three way to do this.
1. Use "JTableReadTableModelTask " to do this. ( recommended )
2. Use "ReadTableModelTask" to do this
3. Use ModelIO to do this.
For details: http://www.zfqjava.com/article/How-to-import-excel-into-JTabel.html
Hi,
Where can i download the jar contains "JTableReadTableModelTask "? Thank you
JTable jTable = new JTable();
String excelFileName = "excelFileName.xls";
File file = new File(excelFileName ); //‘file’ is the file you want to load.
JProgressBar progressBar = new JProgressBar(); //‘progressBar’ will show how much data it have loaded.
JTableReadTableModelTask task = new JTableReadTableModelTask(file, null, progressBar, jTable);
task.execute();
JTable jTable = new JTable();
String excelFileName = "excelFileName.xls";
File file = new File(excelFileName ); //‘file’ is the file you want to load.
JProgressBar progressBar = new JProgressBar(); //‘progressBar’ will show how much data it have loaded.
JTableReadTableModelTask task = new JTableReadTableModelTask(file, null, progressBar, jTable);
task.execute();

After adding the jar in http://www.zfqjava.com/download/componentpack-3.6-eval.zip to your classpath.
Loading...