< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/RadioMenuItem.java

Print this page

        

*** 85,95 **** * In this example, with both RadioMenuItem's assigned to the same * {@link javafx.scene.control.ToggleGroup ToggleGroup}, only one item may be * selected at any one time, and should * the selection change, the ToggleGroup will take care of deselecting the * previous item. - </code></pre> * * @see MenuItem * @see Menu * @since JavaFX 2.0 */ --- 85,94 ----
*** 108,125 **** --- 107,127 ---- this(null,null); } /** * Constructs a RadioMenuItem and sets the display text with the specified text. + * @param text the display text */ public RadioMenuItem(String text) { this(text,null); } /** * Constructs a RadioMenuItem 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 RadioMenuItem(String text, Node graphic) { super(text,graphic); getStyleClass().add(DEFAULT_STYLE_CLASS); }
< prev index next >