回答編集履歴
1
不要コード
test
CHANGED
@@ -63,9 +63,7 @@
|
|
63
63
|
});
|
64
64
|
|
65
65
|
button2.addActionListener(e -> {
|
66
|
-
var map = new HashMap<TextAttribute, Object>(
|
66
|
+
var map = new HashMap<TextAttribute, Object>(1);
|
67
|
-
map.put(TextAttribute.FOREGROUND, Color.BLACK);
|
68
|
-
map.put(TextAttribute.BACKGROUND, Color.WHITE);
|
69
67
|
map.put(TextAttribute.INPUT_METHOD_UNDERLINE, TextAttribute.UNDERLINE_LOW_TWO_PIXEL);
|
70
68
|
|
71
69
|
var highlight = new InputMethodHighlight(true, InputMethodHighlight.CONVERTED_TEXT, 0, map);
|