});
((NYMTableModel) jTable_NymsList.getModel()).setValue(new NYM().loadNYM(), jTable_NymsList);
}
private void initContractsTab() {
Contract contract = new Contract();
jTable_AssetList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) {
return;
}
System.out.println("valueChanged:" + jTable_AssetList.getSelectedRow() + "e:" + e.getSource());
if (jTable_AssetList.getSelectedRow() >= 0) {
String assetID = (String) jTable_AssetList.getModel().getValueAt(jTable_AssetList.getSelectedRow(), 1);
populateAssetContractDetails(assetID, new Contract().getRawAssetFileData(assetID));
}
}
});
jTable_ServerList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) {
return;
}
System.out.println("valueChanged:" + jTable_ServerList.getSelectedRow() + "e:" + e.getSource());
if (jTable_ServerList.getSelectedRow() >= 0) {
String serverID = (String) jTable_ServerList.getModel().getValueAt(jTable_ServerList.getSelectedRow(), 1);
populateServerContractDetails(serverID, new Contract().getRawServerFileData(serverID));
}
}
});
((AssetContractTableModel) jTable_AssetList.getModel()).setValue(contract.loadAssetContract(), jTable_AssetList);
((ServerContractTableModel) jTable_ServerList.getModel()).setValue(contract.loadServerContract(), jTable_ServerList);
}