Drop and Inner shadow for button in javafx -



Drop and Inner shadow for button in javafx -

i have button in javafx , pseudoclass .button:pressed supposed have drop , inner shadow. i'm trying is

.button:pressed { -fx-effect: dropshadow( gaussian , rgba(0,0,0,0.7) , 10,0,0,1 ); -fx-effect: innershadow( gaussian , rgba(0,0,0,0.7) , 20,0,0,0 ); }

however, sec effect seems applied button (actually, effect whichever comes sec applied). i've looked here: http://www.canoo.com/blog/2012/07/10/javafx-recipes-css-vs-code/?lang=de, don't see difference approach. there way apply 2 shadows 1 button?

thank you.

it's not possible in java 7 nor in java 8 chain effects or apply multiple effects via css. see oracle css documentation.

the site reference mentions well:

well @ moment not possible chain effects in css means apply 1 of needed effects lead next result code above…

button javafx dropshadow

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -