MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / appendErr

Method appendErr

src/main/java/core/packetproxy/gui/GUILog.java:71–85  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

69 }
70
71 public void appendErr(String s) {
72 try {
73
74 synchronized (thread_lock) {
75
76 SimpleAttributeSet keyWord = new SimpleAttributeSet();
77 StyleConstants.setBackground(keyWord, new Color(240, 150, 150));
78 StyleConstants.setBold(keyWord, true);
79 StyledDocument doc = text.getStyledDocument();
80 doc.insertString(doc.getLength() - 1, s + "\n", keyWord);
81 }
82 } catch (BadLocationException ex) {
83
84 }
85 }
86}

Callers 1

errMethod · 0.80

Calls 1

getLengthMethod · 0.45

Tested by

no test coverage detected