示例#1
0
  /**
   * shows the options to edit the selected shape
   *
   * @param selectedShape the shape currently selected
   */
  public void shapeSelected(ReactiveShape selectedShape) {
    shape = selectedShape;

    switch (shape.getShapeType()) {
      case ReactiveShape.RECTANGLE:
        type.setValue(TYPE_RECTANGLE);
        break;
      case ReactiveShape.CIRCLE:
        type.setValue(TYPE_CIRCLE);
        break;
      case ReactiveShape.TRIANGLE:
        type.setValue(TYPE_TRIANGLE);
        break;
    }

    backgroundPane.setVisible(false);
    shapePane.setVisible(true);

    color.setValue(shape.getColor());
    filled.setSelected(shape.isFilled());
    borderThickness.setText("" + shape.getBorderThickness());
    borderColor.setValue(shape.getBorderColor());
    width.setText("" + (int) shape.getWidth());
    height.setText("" + (int) shape.getHeight());
  }
  public void refreshList(ObservableList<String> list) {
    docComboBox.setValue(null);
    catComboBox.setValue(null);
    datePicker.setValue(null);
    timeComboBox.setValue(null);

    listView.getItems().clear();
    listView.getItems().addAll(list);
  }
  @Override
  public void start(Stage primaryStage) throws Exception {
    BorderPane outerPane = new BorderPane();
    HBox topBox = new HBox(20);
    HBox bottomBox = new HBox(20);
    outerPane.setCenter(newText);

    fontChoice.setValue("Times New Roman");
    sizeChoice.setValue(12);

    topBox.setPadding(new Insets(20, 20, 20, 20));
    bottomBox.setPadding(new Insets(20, 20, 20, 20));

    List<String> items = Font.getFamilies();
    fontChoice.getItems().addAll(items);

    for (int i = 1; i <= 100; i++) sizeChoice.getItems().add(i);

    topBox.getChildren().addAll(fontName, fontChoice, fontSize, sizeChoice);
    bottomBox.getChildren().addAll(bold, italic);
    topBox.setAlignment(Pos.CENTER);
    bottomBox.setAlignment(Pos.CENTER);

    outerPane.setTop(topBox);
    outerPane.setCenter(newText);
    outerPane.setBottom(bottomBox);

    fontChoice.setOnAction(
        e -> {
          setFont();
        });

    sizeChoice.setOnAction(
        e -> {
          setFont();
        });

    bold.setOnAction(
        e -> {
          setFont();
        });
    italic.setOnAction(
        e -> {
          setFont();
        });

    Scene scene = new Scene(outerPane, X, Y);
    primaryStage.setScene(scene);
    primaryStage.show();
  }
示例#4
0
 private void initSettingsPane() {
   trainTroopsSlider.setMin(0);
   trainTroopsSlider.setMax(Settings.MAX_TRAIN_TROOPS);
   trainTroopsSlider.setBlockIncrement(1);
   trainTroopsSlider
       .valueProperty()
       .addListener(
           (observable, oldValue, newValue) -> {
             trainTroopsSliderPreview.setText(
                 String.format("%d", MainController.toInt(newValue.doubleValue())));
           });
   final Troop[] availableTroops = model.getAvailableTroops();
   rax1ComboBox.getItems().addAll(availableTroops);
   rax2ComboBox.getItems().addAll(availableTroops);
   rax3ComboBox.getItems().addAll(availableTroops);
   rax4ComboBox.getItems().addAll(availableTroops);
   rax5ComboBox.getItems().addAll(availableTroops);
   rax6ComboBox.getItems().addAll(availableTroops);
   autoAttackComboBox.getItems().addAll(Attack.noStrategy());
   autoAttackComboBox.getItems().addAll(Attack.getAvailableStrategies());
   autoAttackComboBox.setValue(autoAttackComboBox.getItems().get(0));
   final ChangeListener<String> intFieldListener =
       (observable, oldValue, newValue) -> {
         try {
           if (!newValue.isEmpty()) {
             Integer.parseInt(newValue);
           }
         } catch (final NumberFormatException e) {
           ((TextField) ((StringProperty) observable).getBean()).setText(oldValue);
         }
       };
   goldField.textProperty().addListener(intFieldListener);
   elixirField.textProperty().addListener(intFieldListener);
   deField.textProperty().addListener(intFieldListener);
   maxThField.textProperty().addListener(intFieldListener);
   logLevelComboBox
       .getItems()
       .addAll(
           Level.FINEST,
           Level.FINER,
           Level.FINE,
           Level.CONFIG,
           Level.INFO,
           Level.WARNING,
           Level.SEVERE);
   logLevelComboBox.setValue(logLevelComboBox.getItems().get(1));
   updateUI();
 }
 /** Sets the CharacterSetComboBox Values corresponding to the allowed Values for this device. */
 private void setUpSelectCharacterSetCharacterSet() {
   selectCharacterSet_characterSet.getItems().clear();
   try {
     for (int i = 0;
         i < ((RemoteOrderDisplay) service).getCharacterSetList().split(",").length;
         i++) {
       selectCharacterSet_characterSet
           .getItems()
           .add(
               Integer.parseInt(
                   (((RemoteOrderDisplay) service).getCharacterSetList().split(","))[i]));
       if (i == 0) {
         selectCharacterSet_characterSet.setValue(
             Integer.parseInt(
                 (((RemoteOrderDisplay) service).getCharacterSetList().split(","))[i]));
       }
     }
   } catch (JposException e) {
     e.printStackTrace();
     JOptionPane.showMessageDialog(
         null,
         "Error occured when getting the CharacterSetList",
         "Error occured!",
         JOptionPane.WARNING_MESSAGE);
   }
 }
 private void setUpUpdateVideoRegionAttributeFunction() {
   updateVideoRegionAttribute_function.getItems().clear();
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_SET.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_INTENSITY_ON.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_INTENSITY_OFF.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_REVERSE_ON.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_REVERSE_OFF.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_BLINK_ON.getConstant());
   updateVideoRegionAttribute_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_UA_BLINK_OFF.getConstant());
   updateVideoRegionAttribute_function.setValue(
       RemoteOrderDisplayConstantMapper.ROD_UA_SET.getConstant());
 }
 private void setUpCheckHealthLevel() {
   checkHealth_level.getItems().clear();
   checkHealth_level.getItems().add(CommonConstantMapper.JPOS_CH_INTERNAL.getConstant());
   checkHealth_level.getItems().add(CommonConstantMapper.JPOS_CH_EXTERNAL.getConstant());
   checkHealth_level.getItems().add(CommonConstantMapper.JPOS_CH_INTERACTIVE.getConstant());
   checkHealth_level.setValue(CommonConstantMapper.JPOS_CH_INTERNAL.getConstant());
 }
示例#8
0
  @FXML
  public void initialize(URL location, ResourceBundle resources) {
    for (String s : Main.settings.getSkins()) {
      skin.getItems().add(s);
    }
    skin.setValue(Main.settings.getSkin());

    skin.setOnAction(
        event -> {
          Main.settings.setSkin(skin.getSelectionModel().getSelectedItem());
          save();
        });

    for (String list : Main.settings.getLists().keySet()) {
      TextField k = new TextField(list);
      k.setId(list);

      String listName = Main.settings.getLists().get(list);
      TextField v = new TextField(listName);
      v.setId("V" + list);

      Button deleteButton = new Button();
      deleteButton.setText("Delete");

      addListListener(k, v, deleteButton);

      lists.getChildren().add(k);
      listsName.getChildren().add(v);
      deleteButtons.getChildren().add(deleteButton);
    }
  }
  private ComboBox addMazeGeneratorComboBox() {
    ObservableList<String> mazeGenerationTypes =
        FXCollections.observableArrayList(Maze.DEFAULT_MAZE_TYPE, Maze.BRAID_MAZE_TYPE);

    final ComboBox mazeGenComboBox = new ComboBox(mazeGenerationTypes);
    mazeGenComboBox.setValue(Maze.DEFAULT_MAZE_TYPE);
    return mazeGenComboBox;
  }
示例#10
0
  public void initProviders() throws DataBaseException {
    providers = dao.getProviders();
    selectProviderCb.getItems().clear();

    for (Provider provider : providers) {
      selectProviderCb.getItems().add(provider.getName());
    }
    selectProviderCb.setValue(providers.get(0).getName());
  }
示例#11
0
 /** {@inheritDoc} */
 @Override
 protected void customInitializeComponents() {
   if (isAdd) {
     if (newButton == null) {
       Button btn = new Button("+");
       buttons.add(btn);
     } else {
       buttons.add(newButton);
     }
   }
   if (isEdit) {
     if (editButton == null) {
       Button btn = new Button("E");
       buttons.add(btn);
     } else {
       buttons.add(editButton);
     }
   }
   if (isDel) {
     if (delButton == null) {
       Button btn = new Button("-");
       buttons.add(btn);
     } else {
       buttons.add(delButton);
     }
   }
   if (isRefresh) {
     if (getRefButton() == null) {
       Button btn = new Button("R");
       buttons.add(btn);
     } else {
       buttons.add(getRefButton());
     }
   }
   getRootNode().getChildren().addAll(buttons);
   if (isPaging) {
     HBox pageHBox = new HBox();
     firstButton = new Button("<<");
     preButton = new Button("<");
     postButton = new Button(">");
     endButton = new Button(">>");
     pageNo = new TextField();
     getPageNo().setText(String.valueOf(pageIndex));
     pageComboBox = new ComboBox(FXCollections.observableArrayList(propPageValue.split(",")));
     pageComboBox.setValue("10");
     pageHBox
         .getChildren()
         .addAll(
             getFirstButton(),
             getPreButton(),
             getPageNo(),
             getPostButton(),
             getEndButton(),
             pageComboBox);
     getRootNode().getChildren().addAll(pageHBox);
   }
 }
示例#12
0
 public void subirElementos() {
   carreraModificada = tblCarrera.getSelectionModel().getSelectedItem();
   if (carreraModificada != null) {
     txtCarrera.setText(carreraModificada.getNombre());
     txtSiglas.setText(carreraModificada.getSiglas());
     txtJefe.setText(carreraModificada.getJefeCarrera());
     txtMatricula.setText(String.valueOf(carreraModificada.getMatricula()));
     cboAcreditada.setValue(carreraModificada.getAcreditada());
   }
 }
 private void setUpTransactionDisplayFunction() {
   transactionDisplay_function.getItems().clear();
   transactionDisplay_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_TD_TRANSACTION.getConstant());
   transactionDisplay_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_TD_NORMAL.getConstant());
   transactionDisplay_function.setValue(
       RemoteOrderDisplayConstantMapper.ROD_TD_TRANSACTION.getConstant());
 }
 private void setUpDrawBoxBorderType() {
   drawBox_borderType.getItems().clear();
   drawBox_borderType
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_BDR_SINGLE.getConstant());
   drawBox_borderType
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_BDR_DOUBLE.getConstant());
   drawBox_borderType.getItems().add(RemoteOrderDisplayConstantMapper.ROD_BDR_SOLID.getConstant());
   drawBox_borderType.setValue(RemoteOrderDisplayConstantMapper.ROD_BDR_SINGLE.getConstant());
 }
示例#15
0
 private void setFormData() {
   if (oldItem != null) {
     btnOk.setDisable(true);
     long ldate = oldItem.getTransDate().getTime();
     Date d2 = new Date(ldate);
     LocalDate localDate = d2.toLocalDate();
     transDate.setValue(localDate);
     transDescription.setText(oldItem.getTransDesc());
     transAmt.setText(Float.toString(oldItem.getTransAmt()));
     transBalance.setText(Float.toString(oldItem.getTransBal()));
     accountNum.setValue(oldItem.getAccountNum());
     transId.setText(oldItem.getId().toString());
     if (oldItem.getPrimaryCat() != null) {
       String str = oldItem.getPrimaryCat().getDescription();
       primaryCat.setValue(str);
     }
     if (oldItem.getPayment() != null) {
       paymentDetail.setList(FXCollections.observableList(oldItem.getPayment()));
       paymentDetail.setItems(paymentDetail.getList());
       Category c = oldItem.getSubCat();
       if (c != null) {
         subCat.setValue(c.getDescription());
       }
     }
     if (oldItem.getCheckNum() != null) {
       checkNum.setText(oldItem.getCheckNum());
     }
     transDate.setDisable(true);
     transId.setDisable(true);
     transAmt.setDisable(true);
     btnOk.setDisable(true);
   } else {
     Date date = new Date(newItem.getTransDate().getTime());
     transDate.setValue(date.toLocalDate());
     transAmt.setText(Float.toString(newItem.getTransAmt()));
     transDescription.setText(newItem.getTransDesc());
     accountNum.setValue(newItem.getAccountNum());
     transId.setText(newItem.getId().toString());
     primaryCat.setValue(newItem.getPrimaryCat().getDescription());
   }
 }
示例#16
0
  public void open(File f) {
    Properties open = new Properties();
    InputStream input = null;

    try {
      input = new FileInputStream(f);
      open.load(input);

      selectProviderCb.setValue(open.getProperty("provider"));
      selectGrainCb.setValue(open.getProperty("grain"));
      weightTf.setText(open.getProperty("weight"));
      infoTa.setText(open.getProperty("info"));

      for (Entry<String, TextField> entry : propertiesTf.entrySet()) {
        String propertyName = entry.getKey();
        TextField tf = entry.getValue();
        CheckBox cb = propertiesCb.get(propertyName);

        tf.setText(open.getProperty(propertyName));
        if (open.getProperty(propertyName + "_ENABLED").equals("ON")) {
          tf.setDisable(false);
          cb.setSelected(true);
        } else {
          tf.setDisable(true);
          cb.setSelected(false);
        }
      }

      mainStage.setTitle(f.getName());
    } catch (Exception ex) {
      infoTa.setText("Не могу открыть файл");
    } finally {
      if (input != null) {
        try {
          input.close();
        } catch (IOException e) {
          e.printStackTrace();
        }
      }
    }
  }
 private void setUpControlClockMode() {
   controlClock_mode.getItems().clear();
   controlClock_mode.getItems().add(RemoteOrderDisplayConstantMapper.ROD_CLK_SHORT.getConstant());
   controlClock_mode.getItems().add(RemoteOrderDisplayConstantMapper.ROD_CLK_NORMAL.getConstant());
   controlClock_mode
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_12_LONG.getConstant());
   controlClock_mode
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_24_LONG.getConstant());
   controlClock_mode.setValue(RemoteOrderDisplayConstantMapper.ROD_CLK_SHORT.getConstant());
 }
示例#18
0
  @Override
  public Pane getVisSettings() {

    GridPane pane = new GridPane();
    pane.setPadding(new Insets(10, 0, 0, 0));
    pane.setHgap(5);
    pane.setVgap(5);

    // Dimension selection box
    ComboBox<String> dimCombo = new ComboBox<>();
    ObservableList<String> dimensions = FXCollections.observableArrayList();
    dimensions.add("X");
    dimensions.add("Y");
    dimensions.add("Z");
    dimCombo.setItems(dimensions);
    dimCombo.setValue(dimensions.get(2));
    dimCombo
        .valueProperty()
        .addListener(
            (ov, oldStr, newStr) -> {
              if (newStr.equals("X")) {
                renderer.setViewingDimension(0);
              } else if (newStr.equals("Y")) {
                renderer.setViewingDimension(1);
              } else {
                renderer.setViewingDimension(2);
              }
              renderer.render();
              Controller.getInstance().updateHistogram();
            });

    Label dimLabel = new Label();
    dimLabel.setText("Projection dimension: ");
    dimLabel.setLabelFor(dimCombo);

    pane.add(dimLabel, 0, 0);
    pane.add(dimCombo, 1, 0);

    // Scale checkbox
    CheckBox scaleBox = new CheckBox("Scale: ");
    scaleBox.setSelected(true);
    scaleBox
        .selectedProperty()
        .addListener(
            (ov, old_val, new_val) -> {
              renderer.setScaling(new_val);
              renderer.render();
            });
    pane.add(scaleBox, 0, 1);

    return pane;
  }
示例#19
0
 @FXML
 private void buttonGenerateClicked() {
   start = null;
   finish = null;
   ObservableList<String> options = FXCollections.observableArrayList("Wall", "Start", "End");
   CellType.setItems(options);
   CellType.setValue("Wall");
   CellType.setVisible(true);
   // В будущем добавим непроходимые клетки по краям чтобы упростить логику вдальнейшем
   int xCellsAmount = Integer.parseInt(XCellsAmountField.getText()) + 2;
   int yCellsAmount = Integer.parseInt(YCellsAmountField.getText()) + 2;
   cells = new Cell[xCellsAmount][yCellsAmount];
   makeBoard(cells);
 }
 private void setUpControlClockClockID() {
   controlClock_clockID.getItems().clear();
   try {
     for (int i = 0; i < ((RemoteOrderDisplay) service).getClocks(); i++) {
       controlClock_clockID.getItems().add(i);
     }
   } catch (JposException e) {
     e.printStackTrace();
     JOptionPane.showMessageDialog(
         null,
         "Error occured when getting the ClockList",
         "Error occured!",
         JOptionPane.WARNING_MESSAGE);
   }
   controlClock_clockID.setValue(1);
 }
 private void setUpRestoreVideoRegionBufferID() {
   restoreVideoRegion_bufferID.getItems().clear();
   try {
     for (int i = 0; i < ((RemoteOrderDisplay) service).getVideoSaveBuffers(); i++) {
       restoreVideoRegion_bufferID.getItems().add(i);
     }
   } catch (JposException e) {
     e.printStackTrace();
     JOptionPane.showMessageDialog(
         null,
         "Error occured when getting the BufferIDList",
         "Error occured!",
         JOptionPane.WARNING_MESSAGE);
   }
   restoreVideoRegion_bufferID.setValue(1);
 }
示例#22
0
  public void newFile() {
    infoTa.setText("");
    selectProviderCb.setValue(providers.get(0).getName());
    weightTf.setText("0.0");

    for (Entry<String, TextField> entry : propertiesTf.entrySet()) {
      String propertyName = entry.getKey();
      TextField tf = entry.getValue();
      CheckBox cb = propertiesCb.get(propertyName);

      tf.setText("0.0");
      tf.setDisable(true);
      cb.setSelected(false);
    }

    file = null;
    mainStage.setTitle("unknown");
  }
 private void setUpControlClockFunction() {
   controlClock_function.getItems().clear();
   controlClock_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_START.getConstant());
   controlClock_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_PAUSE.getConstant());
   controlClock_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_RESUME.getConstant());
   controlClock_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_MOVE.getConstant());
   controlClock_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CLK_STOP.getConstant());
   controlClock_function.setValue(RemoteOrderDisplayConstantMapper.ROD_CLK_START.getConstant());
 }
 private void setUpControlCursorFunction() {
   controlCursor_function.getItems().clear();
   controlCursor_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CRS_LINE.getConstant());
   controlCursor_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CRS_LINE_BLINK.getConstant());
   controlCursor_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CRS_BLOCK.getConstant());
   controlCursor_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CRS_BLOCK_BLINK.getConstant());
   controlCursor_function
       .getItems()
       .add(RemoteOrderDisplayConstantMapper.ROD_CRS_OFF.getConstant());
   controlCursor_function.setValue(RemoteOrderDisplayConstantMapper.ROD_CRS_LINE.getConstant());
 }
  // METODO ENCARGADO DE CARGAR LOS DATOS AL FORMULARIO PROVEEDORES SEGUN EL ITEM SELECCIONADO
  private void cargarDatosProveedorAlFormulario(String dato) {

    ResultSet cargaDatosParaFormularioProveedor = proveedorDao.datosParaFormulario(dato);

    try {

      while (cargaDatosParaFormularioProveedor.next()) {

        txtRutProveedor.setText(cargaDatosParaFormularioProveedor.getString("RUT").trim());
        txtNombreProveedor.setText(cargaDatosParaFormularioProveedor.getString("NOMBRE").trim());
        rbEstadoActivoProv.setDisable(false);
        rbEstadoInactivoProv.setDisable(false);
        txtDireccionProveedor.setText(
            cargaDatosParaFormularioProveedor.getString("DIRECCION").trim());
        txtCiudadProveedor.setText(cargaDatosParaFormularioProveedor.getString("CIUDAD").trim());
        txtTelefonoProveedor.setText(
            cargaDatosParaFormularioProveedor.getString("TELEFONO").trim());
        txtEmailProveedor.setText(cargaDatosParaFormularioProveedor.getString("E_MAIL").trim());
        cbTipos.setDisable(false);
        cbTipos.setValue(cargaDatosParaFormularioProveedor.getString("TIPO_DE_PRODUCTO"));
        estadoProveedor = cargaDatosParaFormularioProveedor.getInt("ESTADO");
        rbEstadoActivoProv.setDisable(false);
        rbEstadoInactivoProv.setDisable(false);
        if (estadoProveedor == 1) {
          rbEstadoActivoProv.setSelected(true);
        } else {
          rbEstadoInactivoProv.setSelected(true);
        }
      }
      cargaDatosParaFormularioProveedor.close();
    } catch (SQLException ex) {
      System.out.println("Error " + ex);
    }

    txtNombreProveedor.setEditable(true);
    txtRutProveedor.setEditable(true);
    txtDireccionProveedor.setEditable(true);
    txtCiudadProveedor.setEditable(true);
    txtTelefonoProveedor.setEditable(true);
    txtEmailProveedor.setEditable(true);
    btnModificarProveedor.setDisable(false);
  }
  private ComboBox<String> addPreGeneratedMazeTypes() {

    ObservableList<String> preGeneratedMazes =
        FXCollections.observableArrayList(
            DEFAULT_PRE_GEN_MAZE_TYPE,
            MAZE_ONE,
            MAZE_TWO,
            MAZE_THREE,
            MAZE_FOUR,
            MAZE_FIVE,
            MAZE_SIX,
            MAZE_SEVEN,
            MAZE_EIGHT,
            MAZE_NINE,
            MAZE_TEN);

    final ComboBox<String> preGenComboBox = new ComboBox(preGeneratedMazes);
    preGenComboBox.setValue(DEFAULT_PRE_GEN_MAZE_TYPE);
    return preGenComboBox;
  }
示例#27
0
  public void initGrains() {
    grains = new ArrayList<>();
    grains.add(new Wheat());
    grains.add(new Rice());
    for (Grain grain : grains) {
      selectGrainCb.getItems().add(grain.getDescription());
    }

    selectGrainCb
        .valueProperty()
        .addListener(
            new ChangeListener<String>() {
              @Override
              public void changed(ObservableValue ov, String t, String t1) {
                grain = getGrain(t1);
                initProperties(grain);
              }
            });

    selectGrainCb.setValue(grains.get(0).getDescription());
  }
  @Override
  public void initialize(URL location, ResourceBundle resources) {
    // TODO Auto-generated method stub
    ObservableList<String> comboItems = FXCollections.observableArrayList("Guesser", "Setter");
    modeSet.setItems(comboItems);
    modeSet.setValue("Guesser");
    ASet.setValue(Color.RED);
    BSet.setValue(Color.BLUE);
    CSet.setValue(Color.GREEN);
    DSet.setValue(Color.CHOCOLATE);
    ESet.setValue(Color.PURPLE);
    FSet.setValue(Color.HOTPINK);
    A.setFill(ASet.getValue());
    B.setFill(BSet.getValue());
    C.setFill(CSet.getValue());
    D.setFill(DSet.getValue());
    E.setFill(ESet.getValue());
    F.setFill(FSet.getValue());
    winLose.setText("");
    setPins.setDisable(true);
    blackPin.setOnMousePressed(
        new EventHandler<MouseEvent>() {

          @Override
          public void handle(MouseEvent event) {
            // TODO Auto-generated method stub
            addBlackPin();
          }
        });
    whitePin.setOnMousePressed(
        new EventHandler<MouseEvent>() {

          @Override
          public void handle(MouseEvent event) {
            // TODO Auto-generated method stub
            addWhitePin();
          }
        });
  }
 private void limpiarCamposProv() {
   txtNombreProveedor.setText("");
   txtNombreProveedor.setEditable(false);
   txtRutProveedor.setText("");
   txtRutProveedor.setEditable(false);
   txtCiudadProveedor.setText("");
   txtCiudadProveedor.setEditable(false);
   txtDireccionProveedor.setText("");
   txtDireccionProveedor.setEditable(false);
   txtTelefonoProveedor.setText("");
   txtTelefonoProveedor.setEditable(false);
   txtEmailProveedor.setText("");
   txtEmailProveedor.setEditable(false);
   rbEstadoActivoProv.setSelected(false);
   rbEstadoInactivoProv.setSelected(false);
   rbEstadoActivoProv.setDisable(true);
   rbEstadoInactivoProv.setDisable(true);
   btnModificarProveedor.setDisable(true);
   btnGuardarProveedor.setDisable(true);
   cbTipos.setValue("Seleccionar");
   cbTipos.setDisable(true);
 }
 private void setUID(ComboBox<String> checkBox) {
   checkBox.getItems().clear();
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_1.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_2.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_3.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_4.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_5.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_6.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_7.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_8.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_9.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_10.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_11.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_12.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_13.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_14.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_15.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_16.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_17.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_18.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_19.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_20.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_21.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_22.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_23.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_24.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_25.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_26.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_27.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_28.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_29.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_30.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_31.getConstant());
   checkBox.getItems().add(RemoteOrderDisplayConstantMapper.ROD_UID_32.getConstant());
   checkBox.setValue(RemoteOrderDisplayConstantMapper.ROD_UID_1.getConstant());
 }