title: Change JLabel Font size
body: <p>I was trying to change the font size of <code>JLabel</code>, I tried to set <code>Font</code> but it is always the same!  </p>
  
  <p>Here is some of the code: </p>
  
  <pre><code> @Override
   public void paint(Graphics g) {
   super.paint(g);
   Container cont=this.getContentPane();
   intro=new JLabel("משחק זיכרון");
   intro.setForeground(Color.YELLOW);
   intro.setFont(intro.getFont().deriveFont(64.0f));
   intro.setHorizontalAlignment( SwingConstants.CENTER );
   cont.add(intro);
       }
  </code></pre>