Esempio n. 1
0
  private void initBoard() {
    board = new NetBlackboard();
    board.setSize(this.editorPanel.getWidth() - 50, this.editorPanel.getHeight() - 50);
    this.editorPanel.add(board);

    controls = new NetControls(board);
    controls.setSize(this.controlPanel.getWidth(), this.controlPanel.getHeight() - 30);
    controlPanel.add(controls);

    board.setNetControls(controls);
    controls.setNetBlackboard(board);

    this.revalidate();
  }