prompt text in text field javaFX
<p>From JavaFX CSS I want to apply an effect only to the prompt-text without affecting the text in a TextField but do not know how to access that item. I can only change the color with -fx-prompt-text-fill. When I apply an effect to the text the prompt-text it is also affected, why?</p>

<pre><code>.text-field {
    -fx-prompt-text-fill: gray;
}
.text-field &gt; .text {
        -fx-effect: dropshadow( two-pass-box , blue , .5, 10 , 1 , 1);    
}
</code></pre>

<p>In the above code also applies shadow to prompt-text what I want to avoid !!</p>