Example usage for javafx.scene.control CheckMenuItem setAccelerator

List of usage examples for javafx.scene.control CheckMenuItem setAccelerator

Introduction

In this page you can find the example usage for javafx.scene.control CheckMenuItem setAccelerator.

Prototype

public final void setAccelerator(KeyCombination value) 

Source Link

Usage

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;
}