< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/CheckMenuItem.java
Print this page
@@ -97,18 +97,21 @@
this(null,null);
}
/**
* Constructs a CheckMenuItem and sets the display text with the specified text.
+ * @param text the display text
*/
public CheckMenuItem(String text) {
this(text,null);
}
/**
* Constructs a CheckMenuItem and sets the display text with the specified text
* and sets the graphic {@link Node} to the given node.
+ * @param text the display text
+ * @param graphic the graphic Node
*/
public CheckMenuItem(String text, Node graphic) {
super(text,graphic);
getStyleClass().add(DEFAULT_STYLE_CLASS);
}
< prev index next >