MCPcopy Create free account
hub / github.com/GateNLP/gate-core / updateStyle

Method updateStyle

src/main/java/gate/swing/XJTextPane.java:59–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 protected void updateStyle(){
60 Font newFont = UIManager.getFont("TextPane.font");
61 Style defaultStyle = getStyle("default");
62 StyleConstants.setFontFamily(defaultStyle, newFont.getFamily());
63 StyleConstants.setFontSize(defaultStyle, newFont.getSize());
64 StyleConstants.setItalic(defaultStyle, newFont.isItalic());
65 StyleConstants.setBold(defaultStyle, newFont.isBold());
66 repaint();
67 }
68}

Callers 2

XJTextPaneMethod · 0.95
propertyChangeMethod · 0.95

Calls 3

getFontMethod · 0.80
getSizeMethod · 0.45
repaintMethod · 0.45

Tested by

no test coverage detected