File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sources/net.sf.j2s.java.core/src/swingjs/plaf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public abstract class JSTextUI extends JSLightweightUI {// implements {ViewFacto
130130 protected static final EditorKit defaultKit = new DefaultEditorKit ();
131131
132132 static final Point markDot = new Point ();
133-
133+
134134 transient JTextComponent editor ;
135135 protected boolean editable = true ;
136136 protected RootView rootView = new RootView ();
@@ -293,7 +293,7 @@ protected void setColors(String prefix) {
293293 if ((dfg == null ) || (dfg instanceof UIResource )) {
294294 editor .setDisabledTextColor (UIManager .getColor (prefix + ".inactiveForeground" ));
295295 }
296- dfg = UIManager .getColor (prefix + ".inactiveBackground" );
296+ dfg = UIManager .getColor (editor . 秘isAWT () ? "control" : prefix + ".inactiveBackground" );
297297 if (dfg != null )
298298 inactiveBackground = dfg ;
299299
You can’t perform that action at this time.
0 commit comments