text shadow effect on controls

Pedro Duque Vieira pedro.duquevieira at gmail.com
Mon May 28 03:02:01 PDT 2012


Hi,

To set drop shadows on text of controls, Jasper used an undocumented javafx
css feature on his blog post:
http://fxexperience.com/2011/12/styling-fx-buttons-with-css/comment-page-1/#comment-59982


The syntax was:
<control id> Text
{
   -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.8) , 0, 0.0 , 0 , -1
);
}

However this doesn't seem to work in 2.1. How can I add text shadow effects
on controls on 2.1?

-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list