better rendering of configuration fields

This commit is contained in:
rusefillc 2022-01-01 23:36:07 -05:00
parent 825071e3cc
commit eb1aab5852
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ public class LiveDataParserPanel {
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
try (BufferedReader br = new BufferedReader(new InputStreamReader(cpp))) { try (BufferedReader br = new BufferedReader(new InputStreamReader(cpp))) {
while ((line = br.readLine()) != null) { while ((line = br.readLine()) != null) {
result.append(line + "\n"); result.append(line).append("\n");
} }
} }
return result.toString(); return result.toString();
@ -149,13 +149,13 @@ public class LiveDataParserPanel {
@Override @Override
public void paintBackground(Color color, Range range) { public void paintBackground(Color color, Range range) {
AttributeSet s = sc.addAttribute(oldSet, StyleConstants.Background, color); AttributeSet s = sc.addAttribute(oldSet, StyleConstants.Background, color);
styledDocument.setCharacterAttributes(range.getStart(), range.getLength(), s, true); styledDocument.setCharacterAttributes(range.getStart(), range.getLength(), s, false);
} }
@Override @Override
public void paintForeground(Color color, Range range) { public void paintForeground(Color color, Range range) {
AttributeSet s = sc.addAttribute(oldSet, StyleConstants.Foreground, color); AttributeSet s = sc.addAttribute(oldSet, StyleConstants.Foreground, color);
styledDocument.setCharacterAttributes(range.getStart(), range.getLength(), s, true); styledDocument.setCharacterAttributes(range.getStart(), range.getLength(), s, false);
} }
}, tree); }, tree);
} }