()
| 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 | } |
no test coverage detected