View Javadoc
1   package net.logAnalyzer.utils.gui.quickbar;
2   
3   import java.awt.Font;
4   import java.awt.Graphics;
5   
6   import javax.swing.Icon;
7   import javax.swing.JLabel;
8   import javax.swing.SwingConstants;
9   
10  import net.logAnalyzer.utils.gui.GraphicsAttributes;
11  
12  public class QuickTitle extends JLabel {
13      private static final long serialVersionUID = 1L;
14  
15      public QuickTitle(String text, Icon icon) {
16          super(text, icon, SwingConstants.LEADING);
17          setForeground(GraphicsAttributes.QUICKTITLE_FOREGROUND_COLOR);
18          setFont(getFont().deriveFont(Font.BOLD));
19      }
20  
21      protected void paintComponent(Graphics g) {
22          super.paintComponent(g);
23      }
24  
25  }