This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Add support for the fx CSS files: *.css For Example: ------------ my.css ----------------------- "javafx.scene.shape.Rectangle" { fill:yellow ; } --------------------------------------------- ------------ Main.fx --------- import javafx.scene.Scene; import javafx.stage.Stage; import javafx.scene.shape.Rectangle; Stage { title: "CSS aplication" scene: Scene { width: 200 height: 200 content: [ Rectangle { x: 10, y: 10 width: 140, height: 90 } ] stylesheets: ["{__DIR__}my.css"] } } ---------------------------------------------
See http://forums.sun.com/thread.jspa?threadID=5357325
A template for the JavaFX CSS files should be added to the JavaFX File Types.
The template could look like: ---------- controlStyle.css ------------------- .button { -fx-text-fill: rgb(228, 243, 252); -fx-font: 20pt "Comic Sans MS Bold"; -fx-padding: 10; -fx-color: rgb(45, 75, 142); } .button:hover{ -fx-color: rgb(57, 91, 174); } ------------------------------------------------
From a user comment: http://javafx.com/docs/articles/UIControls/theming.jsp "In Project/New I have no found a possibility to choose a '*.css'- file. Only '*.xsl' is avaialable. Is an 'Empty File' the correct choice?"
it's there - New File > Other > Cascading Style Sheet --> WORKSFORME
It seems no because users who read the Applying CSS to UI Controls tutorial expect that css template is listed in the New File > JavaFX.
fixed, new Java FX CSS template with some basics .scene javafx css values http://hg.netbeans.org/javafx/rev/df1d551e201c
Late changes requested by: http://jupiter.czech.sun.com/wiki/view/Nbdoc/NB69LateUIChanges
Cleaning bugzilla categories ....