Closed. This question needs to be more focused。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                        
                        2年前关闭。
                                                                                            
                
        
如何将Date-Picker中的黑色线条更改为白色?

enter image description here

最佳答案

尝试这个。它似乎也具有聚焦线颜色。

.jfx-date-picker .input-line {
    -fx-background-color: white;
}
.jfx-date-picker .input-focused-line {
    -fx-background-color: red;
}


Scenic View可以帮助您分析运行时场景图。

java - 如何在DatePicker JavaFx中更改颜色线-LMLPHP

07-24 22:12