List of usage examples for javafx.scene.layout CornerRadii CornerRadii
public CornerRadii(@NamedArg("radius") double radius)
From source file:gov.va.isaac.gui.ConceptNode.java
/** * If, for some reason, you want a concept node selection box that is completely disabled - call this method after constructing * the concept node. Though one wonders, why you wouldn't just use a label in this case.... *///from ww w .j a va 2 s. c o m public void disableEdit() { AppContext.getService(DragRegistry.class).removeDragCapability(cb_); cb_.setEditable(false); dropDownOptions_.removeListener(listChangeListener_); listChangeListener_ = null; cb_.setItems(FXCollections.observableArrayList()); cb_.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, new CornerRadii(0), new Insets(0)))); }