csaAttackerPanel = new CSATablePanel(t);
csaAttackerPanel.setXMLId("AttackerSimTable");
csaAttackerPanel.setTableStyleSwitchingEnabled(false);
csaAttackerPanel.setTablePopupEnabled(true);
csaAttackerPanel.setDoubleClickAction(new DoubleClickAction()
{
public void doIt()
{
JTable table = (JTable) evt.getSource();
mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
mCol = csaAttackerPanel.getModel().convertEnabledColToRealCol(mCol);
tableDoubleClicked();
}
});
jPanelAttackerTab.removeAll();
javax.swing.GroupLayout jPanelAttackerTabLayout = new javax.swing.GroupLayout(jPanelAttackerTab);
jPanelAttackerTab.setLayout(jPanelAttackerTabLayout);
jPanelAttackerTabLayout.setHorizontalGroup(
jPanelAttackerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelAttackerTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(csaAttackerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
.addContainerGap())
);
jPanelAttackerTabLayout.setVerticalGroup(
jPanelAttackerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelAttackerTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(csaAttackerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
);
t = CSATableModel.buildTableModel(getBlockerTableModel());
csaBlockerPanel = new CSATablePanel(t);
csaBlockerPanel.setXMLId("BlockerSimTable");
csaBlockerPanel.setTableStyleSwitchingEnabled(false);
csaBlockerPanel.setTablePopupEnabled(true);
csaBlockerPanel.setDoubleClickAction(new DoubleClickAction()
{
public void doIt()
{
JTable table = (JTable) evt.getSource();
mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
mCol = csaBlockerPanel.getModel().convertEnabledColToRealCol(mCol);
tableDoubleClicked();
}
});
jPanelBlockerTab.removeAll();
javax.swing.GroupLayout jPanelBlockerTabLayout = new javax.swing.GroupLayout(jPanelBlockerTab);
jPanelBlockerTab.setLayout(jPanelBlockerTabLayout);
jPanelBlockerTabLayout.setHorizontalGroup(
jPanelBlockerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelBlockerTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(csaBlockerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
.addContainerGap())
);
jPanelBlockerTabLayout.setVerticalGroup(
jPanelBlockerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanelBlockerTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(csaBlockerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
);
if (mBattleDone)
{
t = CSATableModel.buildTableModel(getCombatFormationTableModel());
csaCombatFormationPanel = new CSATablePanel(t);
csaCombatFormationPanel.setXMLId("CombatFormationTable");
csaCombatFormationPanel.setTableStyleSwitchingEnabled(false);
csaCombatFormationPanel.setTablePopupEnabled(true);
csaCombatFormationPanel.setDoubleClickAction(new DoubleClickAction()
{
public void doIt()
{
JTable table = (JTable) evt.getSource();
mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));