JavaFX[1.3] – Power of CSS


There was a question related to setting of background color for TreeView. Yes we can do lot of customization of Controls using CSS. It may be a bit difficult at this point of time due to lack of proper documentation. But you can start playing with CSS using StyleEditor sample.

Below samples shows ListView and TreeView customized using javafx.css file.
Thanks to Jasper Potts for help

For Applet mode, click on above image. For standalone mode

Try it out and let me know feedback
It will be much much easier once the official documentation is in place..

Advertisements

About Rakesh Menon
-

10 Responses to JavaFX[1.3] – Power of CSS

  1. Pingback: JavaFX – Skinnable Controls | Java, JavaFX and beyond…

  2. Pingback: Tweets that mention JavaFX[1.3] – Power of CSS | Java, JavaFX and beyond… -- Topsy.com

  3. Pingback: JavaFX links of the week, May 31 // JavaFX News, Demos and Insight // FX Experience

  4. Pingback: Java desktop links of the week, May 31 | Jonathan Giles

  5. Selina says:

    Rakesh,

    It’s very useful.
    Thank you!

    Selina

  6. shiv says:

    I tried using your source code in the main.fx file of “Power of css”. but there are errors reported. the error message says “canot find class TreeItemBase”. Is there any other package i must import?? plz help me run this code…

  7. John says:

    Hi Rakesh,
    thanks for your work!
    Do you know to set the dropdown list height of the ChoiceBox control? Because for the moment , it takes the full height of the scene (when you have a lot of items in the list)

    Thanks for your help!
    John

  8. Kelly says:

    Hey there, could anybody tell me please whether JavaFX has a date picker or how I can create one? 😦

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: