Package net.sf.robocode.battle

Examples of net.sf.robocode.battle.BattleResultsTableModel


        } catch (IOException e) {
          Logger.logError(e);
        }
      }
      if (out != null) {
        BattleResultsTableModel resultsTable = new BattleResultsTableModel(event.getSortedResults(),
            event.getBattleRules().getNumRounds());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();

        resultsTable.print(new PrintStream(baos));
        out.append(StringUtil.toBasicLatin(baos.toString()));
      }
    } finally {
      FileUtil.cleanupStream(out);
      FileUtil.cleanupStream(fos);     
View Full Code Here


    initialize();
    addCancelByEscapeKey();
  }

  public void setup(BattleResults[] results, int numRounds) {
    tableModel = new BattleResultsTableModel(results, numRounds);
    setTitle(((BattleResultsTableModel) getTableModel()).getTitle());
    setResultsData();

    table.setPreferredSize(
        new Dimension(table.getColumnModel().getTotalColumnWidth(),
View Full Code Here

TOP

Related Classes of net.sf.robocode.battle.BattleResultsTableModel

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.