Package com.commander4j.tablemodel

Examples of com.commander4j.tablemodel.JDBInterfaceRequestTableModel


    listStatement = query.getPreparedStatement();
  }

  private void populateList() {
    JDBInterfaceRequest interfaceRequest = new JDBInterfaceRequest(Common.selectedHostID, Common.sessionID);
    JDBInterfaceRequestTableModel interfaceRequestTable = new JDBInterfaceRequestTableModel(interfaceRequest.getInterfaceRequestResultSet(listStatement));
    TableRowSorter<JDBInterfaceRequestTableModel> sorter = new TableRowSorter<JDBInterfaceRequestTableModel>(interfaceRequestTable);

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

    jScrollPane1.setViewportView(jTable1);

    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(140);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(200);
    jTable1.getColumnModel().getColumn(3).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(4).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(6).setPreferredWidth(160);
    jTable1.getColumnModel().getColumn(7).setPreferredWidth(300);

    jScrollPane1.repaint();

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


    listStatement = query.getPreparedStatement();
  }

  private void populateList() {
    JDBInterfaceRequest interfaceRequest = new JDBInterfaceRequest(Common.selectedHostID, Common.sessionID);
    JDBInterfaceRequestTableModel interfaceRequestTable = new JDBInterfaceRequestTableModel(interfaceRequest.getInterfaceRequestResultSet(listStatement));
    TableRowSorter<JDBInterfaceRequestTableModel> sorter = new TableRowSorter<JDBInterfaceRequestTableModel>(interfaceRequestTable);

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

    jScrollPane1.setViewportView(jTable1);

    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    jTable1.setFont(Common.font_list);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(140);
    jTable1.getColumnModel().getColumn(1).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(2).setPreferredWidth(200);
    jTable1.getColumnModel().getColumn(3).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(4).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);
    jTable1.getColumnModel().getColumn(6).setPreferredWidth(160);
    jTable1.getColumnModel().getColumn(7).setPreferredWidth(300);

    jScrollPane1.repaint();

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

TOP

Related Classes of com.commander4j.tablemodel.JDBInterfaceRequestTableModel

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.