title: Non-Static Variable Cannot be Referenced From a Static Context: New to GUIs
body: <p>Whenever I compile this, I get an error reading "non-static variable french cannot be referenced from a static context". I have just started working with GUIs, but I cannot find an answer to this. I'm sure it's something simple, but I cannot figure it out! </p>
  
  <p>Any help would be very greatly appreciated.</p>
  
  <pre><code> public class ReportCard {
   JTextField french = new JTextField ("French Grade") ;
   public static void main (String args[]) {
      JFrame frame = new JFrame ("Report Card") ;
      frame.setSize(400 , 600) ;
      frame.setVisible(true) ;
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ;
  
      JPanel bigPanel = new JPanel() ;
      frame.getContentPane().add(bigPanel) ;
  
      bigPanel.add(french) ;   
  </code></pre>