code hint fixes

This commit is contained in:
honfika@gmail.com
2015-01-18 22:49:59 +01:00
parent ade56d45a2
commit e4e9676081
25 changed files with 136 additions and 147 deletions

View File

@@ -138,10 +138,11 @@ public class PlayerControls extends JPanel implements ActionListener {
private static Font notUnderlinedFont = null;
static {
notUnderlinedFont = new JLabel().getFont();
Font font = new JLabel().getFont();
notUnderlinedFont = font;
Map<TextAttribute, Integer> fontAttributes = new HashMap<>();
fontAttributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
underlinedFont = notUnderlinedFont.deriveFont(fontAttributes);
underlinedFont = font.deriveFont(fontAttributes);
}
public PlayerControls(final MainPanel mainPanel, MediaDisplay display) {