Package com.commander4j.tablemodel

Examples of com.commander4j.tablemodel.JDBPalletHistoryTableModel


  }

  private void populateList() {
    JDBPalletHistory pallethistory = new JDBPalletHistory(Common.selectedHostID, Common.sessionID);

    JDBPalletHistoryTableModel palletHistoryTable = new JDBPalletHistoryTableModel(pallethistory.getPalletHistoryDataResultSet(listStatement));
    TableRowSorter<JDBPalletHistoryTableModel> sorter = new TableRowSorter<JDBPalletHistoryTableModel>(palletHistoryTable);

    jTable1.setRowSorter(sorter);
    jTable1.setModel(palletHistoryTable);

    jScrollPane1.setViewportView(jTable1);
    JUtility.scrolltoHomePosition(jScrollPane1);
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(3).setPreferredWidth(120);
    jTable1.getColumnModel().getColumn(4).setPreferredWidth(140);
    jTable1.getColumnModel().getColumn(5).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(6).setPreferredWidth(75);
    jTable1.getColumnModel().getColumn(7).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(8).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(9).setPreferredWidth(40);
    jTable1.getColumnModel().getColumn(10).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(11).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(12).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(13).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(14).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(15).setPreferredWidth(100);
    if (expiryMode.equals("SSCC"))
    {
      jTable1.getColumnModel().getColumn(16).setPreferredWidth(120);
    }
   
    jScrollPane1.repaint();

    JUtility.setResultRecordCountColour(jStatusText, jCheckBoxLimit.isSelected(), Integer.valueOf(jSpinnerLimit.getValue().toString()), palletHistoryTable.getRowCount());

  }
View Full Code Here


  }

  private void populateList() {
    JDBPalletHistory pallethistory = new JDBPalletHistory(Common.selectedHostID, Common.sessionID);

    JDBPalletHistoryTableModel palletHistoryTable = new JDBPalletHistoryTableModel(pallethistory.getPalletHistoryDataResultSet(listStatement));
    TableRowSorter<JDBPalletHistoryTableModel> sorter = new TableRowSorter<JDBPalletHistoryTableModel>(palletHistoryTable);

    jTable1.setRowSorter(sorter);
    jTable1.setModel(palletHistoryTable);

    jScrollPane1.setViewportView(jTable1);
    JUtility.scrolltoHomePosition(jScrollPane1);
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(3).setPreferredWidth(120);
    jTable1.getColumnModel().getColumn(4).setPreferredWidth(140);
    jTable1.getColumnModel().getColumn(5).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(6).setPreferredWidth(75);
    jTable1.getColumnModel().getColumn(7).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(8).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(9).setPreferredWidth(40);
    jTable1.getColumnModel().getColumn(10).setPreferredWidth(80);
    jTable1.getColumnModel().getColumn(11).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(12).setPreferredWidth(90);
    jTable1.getColumnModel().getColumn(13).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(14).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(15).setPreferredWidth(100);
    if (expiryMode.equals("SSCC"))
    {
      jTable1.getColumnModel().getColumn(16).setPreferredWidth(120);
    }
   
    jScrollPane1.repaint();

    JUtility.setResultRecordCountColour(jStatusText, jCheckBoxLimit.isSelected(), Integer.valueOf(jSpinnerLimit.getValue().toString()), palletHistoryTable.getRowCount());

  }
View Full Code Here

TOP

Related Classes of com.commander4j.tablemodel.JDBPalletHistoryTableModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.