List of usage examples for javafx.scene.text FontPosture ITALIC
FontPosture ITALIC
To view the source code for javafx.scene.text FontPosture ITALIC.
Click Source Link
From source file:se.trixon.filebydate.ui.MainApp.java
private void createUI() { mRoot = new BorderPane(); Scene scene = new Scene(mRoot); //scene.getStylesheets().add("css/modena_dark.css"); mDefaultFont = Font.getDefault(); initActions();// www . jav a 2 s .c o m mListView = new ListView<>(); mListView.setItems(mItems); mListView.setCellFactory((ListView<Profile> param) -> new ProfileListCell()); Label welcomeLabel = new Label(mBundle.getString("welcome")); welcomeLabel.setFont(Font.font(mDefaultFont.getName(), FontPosture.ITALIC, 18)); mListView.setPlaceholder(welcomeLabel); mPreviewPanel = new PreviewPanel(); mRoot.setCenter(mListView); mRoot.setBottom(mPreviewPanel); mStage.setScene(scene); setRunningState(RunState.STARTABLE); }
From source file:se.trixon.mapollage.ui.MainApp.java
private void createUI() { mRoot = new BorderPane(); Scene scene = new Scene(mRoot); //scene.getStylesheets().add("css/modena_dark.css"); mDefaultFont = Font.getDefault(); initActions();//w w w. j a va2 s .c o m mListView = new ListView<>(); mListView.setItems(mItems); mListView.setCellFactory((ListView<Profile> param) -> new ProfileListCell()); Label welcomeLabel = new Label(mBundle.getString("welcome")); welcomeLabel.setFont(Font.font(mDefaultFont.getName(), FontPosture.ITALIC, 18)); mOpenButton = mProgressPanel.getOpenButton(); mOpenButton.setOnAction((ActionEvent event) -> { SystemHelper.desktopOpen(mDestination); }); mOpenButton.setGraphic( mFontAwesome.create(FontAwesome.Glyph.GLOBE).size(ICON_SIZE_TOOLBAR / 2).color(mIconColor)); mListView.setPlaceholder(welcomeLabel); mRoot.setCenter(mListView); mStage.setScene(scene); setRunningState(RunState.STARTABLE); }