Exemplo n.º 1
0
 private void initMessageUI() {
   messageBox = new TextBox();
   messageBox.setReadOnly(true);
   messageBox.setWidth(FieldCanvas.SIZE * game.getBoard().getDimension().x + "px");
   messageBox.setText("Click field to start game.");
   add(messageBox);
 }
Exemplo n.º 2
0
 private void setOutputPathChangeEnabled(final boolean enabled) {
   if (output != null && enabled != outputPathChangeEnabled) {
     outputPathChangeEnabled = enabled;
     if (!outputPathChangeEnabled) {
       outputPathUserSpecified = false;
     }
     output.setReadOnly(!enabled);
     // Update the output location, when changes are disabled, the field gets filled automatically
     updateOutputLocation();
   }
 }