List of usage examples for javafx.scene.control CheckMenuItem setAccelerator
public final void setAccelerator(KeyCombination value)
From source file:com.cdd.bao.editor.EditSchema.java
private CheckMenuItem addCheckMenu(Menu parent, String title, KeyCombination accel) { CheckMenuItem item = new CheckMenuItem(title); parent.getItems().add(item);/* ww w. j a v a 2 s. c o m*/ if (accel != null) item.setAccelerator(accel); return item; }