Package com.commander4j.tablemodel

Examples of com.commander4j.tablemodel.JDBMaterialLocationTableModel


  }

  private void populateList()
  {
    JDBMaterialLocation materialLocation = new JDBMaterialLocation(Common.selectedHostID, Common.sessionID);
    JDBMaterialLocationTableModel materialLocationTable = new JDBMaterialLocationTableModel(materialLocation.getMaterialLocationDataResultSet(listStatement));
    TableRowSorter<JDBMaterialLocationTableModel> sorter = new TableRowSorter<JDBMaterialLocationTableModel>(materialLocationTable);

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

    jScrollPane1.setViewportView(jTable1);
    JUtility.scrolltoHomePosition(jScrollPane1);
    // jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(118);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(118);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(145);

    jScrollPane1.repaint();

    JUtility.setResultRecordCountColour(jStatusText, false, 0, materialLocationTable.getRowCount());
  }
View Full Code Here


  }

  private void populateList()
  {
    JDBMaterialLocation materialLocation = new JDBMaterialLocation(Common.selectedHostID, Common.sessionID);
    JDBMaterialLocationTableModel materialLocationTable = new JDBMaterialLocationTableModel(materialLocation.getMaterialLocationDataResultSet(listStatement));
    TableRowSorter<JDBMaterialLocationTableModel> sorter = new TableRowSorter<JDBMaterialLocationTableModel>(materialLocationTable);

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

    jScrollPane1.setViewportView(jTable1);
    JUtility.scrolltoHomePosition(jScrollPane1);
    // jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(118);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(118);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(145);

    jScrollPane1.repaint();

    JUtility.setResultRecordCountColour(jStatusText, false, 0, materialLocationTable.getRowCount());
  }
View Full Code Here

TOP

Related Classes of com.commander4j.tablemodel.JDBMaterialLocationTableModel

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.