File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ protected void installMyDefaults(JComponent component) {
96
96
textComponent .setSelectedTextColor (getComponent ().hasFocus () && getComponent ().isEnabled () ? activeForeground : inactiveForeground );
97
97
textComponent .setForeground (getComponent ().hasFocus () && getComponent ().isEnabled () ? activeForeground : inactiveForeground );
98
98
textComponent .setBorder (UIManager .getBorder (getPropertyPrefix () + ".border" ));
99
+ textComponent .setCaretColor (UIManager .getColor (getPropertyPrefix () + ".caretForeground" ));
100
+
99
101
}
100
102
101
103
protected void logicForPropertyChange (Color newColor , boolean isForeground ){
Original file line number Diff line number Diff line change @@ -209,6 +209,11 @@ public void installUIDefault(UIDefaults table) {
209
209
table .put ("TabbedPane[contentBorder].enableLeaf" , false );
210
210
table .put ("TabbedPane[contentBorder].enableRight" , false );
211
211
table .put ("TabbedPane[contentBorder].enableBottom" , false );
212
+
213
+ table .put ("TextField.caretForeground" , Color .WHITE );
214
+ table .put ("TextArea.caretForeground" , Color .WHITE );
215
+ table .put ("TextPane.caretForeground" , Color .WHITE );
216
+ table .put ("PasswordField.caretForeground" , Color .WHITE );
212
217
}
213
218
214
219
@ Override
You can’t perform that action at this time.
0 commit comments