title: Can't find symbol (dot) error when setting font/color
body: <p>I'm currently working with a book to learn some Java, I'm at one of the beginning programs and copied the code as written down but somehow I get a weird error and simply can't find the error or solution online.</p>
  
  <p>The Code: </p>
  
  <pre><code>import java.awt.*;
  import javax.swing.*;
  
  public class GrussMitProgrammfenster extends JFrame {
      public GrussMitProgrammfenster() {
      super("Hallo");
  
      Icon icon = new ImageIcon("test.png");
      JLabel label1 = new JLabel("Viel Erfolg beim", JLabel.CENTER);
      JLabel label2 = new JLabel("Programmieren mit Java!", JLabel.CENTER);
      JLabel label3 = new JLabel(icon);
      Font schrift = new Font("SansSerif", Font.BOLD, 24);
      label1.SetFont(schrift);
      label1.SetForeground(Color.RED);
      label2.SetFont(schrift);
      label2.SetForeground(Color.RED);
      Container c = getContentPane();
      c.setLayout(new FlowLayout());
      c.SetBackground(Color.WHITE);
      c.add(label1);
      c.add(label2);
      c.add(label3);
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      setSize(300,250);
      setVisible(true);
  }
  
  
   public static void main(String[] args){
   new GrussMitProgrammfenster();
   }
  }
  </code></pre>
  
  <p>The Errors I'm getting are:</p>
  
  <pre><code>GrussMitProgrammfenster.java:15: error: cannot find symbol
      label1.SetFont(schrift);
            ^
      symbol:   method SetFont(Font)
    location: variable label1 of type JLabel
      GrussMitProgrammfenster.java:16: error: cannot find symbol
      label1.SetForeground(Color.RED);
            ^
    symbol:   method SetForeground(Color)
    location: variable label1 of type JLabel
      GrussMitProgrammfenster.java:17: error: cannot find symbol
      label2.SetFont(schrift);
            ^
    symbol:   method SetFont(Font)
    location: variable label2 of type JLabel
  GrussMitProgrammfenster.java:18: error: cannot find symbol
      label2.SetForeground(Color.RED);
            ^
    symbol:   method SetForeground(Color)
    location: variable label2 of type JLabel
  GrussMitProgrammfenster.java:21: error: cannot find symbol
      c.SetBackground(Color.WHITE);
       ^
    symbol:   method SetBackground(Color)
    location: variable c of type Container
  5 errors
  [Finished in 3.2s with exit code 1]
  </code></pre>
  
  <p>Thanks for any help!! </p>