if (!( nowMatch.getPlayer(playerNo) instanceof MatchComputerPlayer)) return null;
if (((MatchComputerPlayer) nowMatch.getPlayer(playerNo) ).getEAI() == null) return null;
// final EAIDebugWindow results = new EAIDebugWindow(mMatch, playerNo);
results = new EAIDebugWindow(nowMatch, playerNo);
JPortalInternalFrame frame = new JPortalInternalFrame();
frame.addPanel(results);
frame.setSize(719, 690);
frame.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter() {
@Override
public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
EAIDebugWindow eaiDebug = (EAIDebugWindow) ((JPortalInternalFrame)evt.getInternalFrame()).getPanel();
if (eaiDebug != null)
{
eaiDebug.deinit();
}
results = null;
}
});