public class FontDialog extends Dialog
CANCEL_BUTTON, OK_BUTTON
Constructor and Description |
---|
FontDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String title)
Create a new dialog
|
Modifier and Type | Method and Description |
---|---|
protected javafx.scene.Node |
createDialogArea() |
@NonNull javafx.beans.property.ObjectProperty<javafx.scene.text.Font> |
font() |
@Nullable javafx.scene.text.Font |
getFont() |
void |
setFont(@Nullable javafx.scene.text.Font f)
Update the current selected font
|
buttonPressed, cancelPressed, close, create, createButtonBar, createButtonForBar, createButtonsForBar, createContents, getBounds, getContentInset, getInitialContentSize, getInitialLocation, getInitialSize, getModality, getStylesheets, isCancelDefault, isOkDefault, okPressed, open, pack, preopen, setBounds, setReturnCode
public FontDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String title)
parent
- the parenttitle
- the titlepublic @NonNull javafx.beans.property.ObjectProperty<javafx.scene.text.Font> font()
public void setFont(@Nullable javafx.scene.text.Font f)
f
- the new fontpublic @Nullable javafx.scene.text.Font getFont()
protected javafx.scene.Node createDialogArea()
createDialogArea
in class Dialog