I noticed that when I run JavaFX application on JVM 7 and JVM 8 I get different default skins. How I can set the default skin to be same on every JVM?
相关问题
- I get an exception when trying to swap elements in
- JFX scale image up and down to parent
- Dragging an undecorated Stage in JavaFX
- JavaFX sample issue
- How to properly use Weld in JavaFX 2 application?
相关文章
- Low quality icon in taskbar of a Stage. JavaFX
- Loading custom font using JavaFX 8 and css
- Javafx Platform.runLater never running
- JavaFX scrolling table update performance degrades
- How to change the color of pane in javafx?
- Javafx select multiple rows
- TableView has more columns than specified
- Escape from a Number TextField in a JavaFX dialog
The default stylesheet for JavaFX 2 is caspian.css. You can find it in jfxrt.jar under com.sun.javafx.scene.control.skin.caspian. This changed with JavaFX 8 and I believe the default stylesheet is named modena.css. In order to get a common stylesheet, you will have to either define your own or copy one of the defaults into your project.
You can set the default skin:
http://fxexperience.com/2013/01/modena-new-theme-for-javafx-8/
You can also run with -Djavafx.userAgentStylesheetUrl=caspian on the command line.
You can set your own skin by adding a style sheet.
Unfortunately there is no default style sheet. Maybe browsing in jfxrt.jar might yield something.