예제 #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);
 }
예제 #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();
   }
 }