• How to import Excel file into JTable?

    From bnslh.leila@gmail.com@21:1/5 to All on Wed Feb 10 10:34:36 2016
    Le samedi 10 mai 2008 01:50:28 UTC+1, zfq...@gmail.com a écrit :
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hasan Diwan@21:1/5 to bnslh.leila@gmail.com on Thu Apr 21 05:57:15 2016
    On 2016-02-10, bnslh.leila@gmail.com <bnslh.leila@gmail.com> wrote:
    Le samedi 10 mai 2008 01:50:28 UTC+1, zfq...@gmail.com a ?crit?:
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)