title: Changing the text in the title bar
body: <p>I'm getting an error at the line:  jFrame cannot be resolved</p>
  
  <pre><code>jFrame.setTitle(titleName.getText());
  
  
  
  
  
      public void createOption(){
          Option = new JPanel();
          Option.setLayout( null );
  
           JLabel TitleLabel = new JLabel("Change the company name");
           TitleLabel.setBounds(140, 15, 200, 20);
           Option.add(TitleLabel);
           titleName = new JTextField();
           titleName.setBounds(90,40,260,20);
             Option.add(titleName);
  
             JButton Change = new JButton("Change New Name");
             Change.setBounds(90,80,150,20);
             Change.addActionListener(this);
             Change.setBackground(Color.white);
             Option.add(Change);
  
             JButton Exit = new JButton("Exit");
             Exit.setBounds(270,80,80,20);
             Exit.addActionListener(this);
             Exit.setBackground(Color.white);
             Option.add(Exit);
  
             Change.addActionListener(new ActionListener() { 
  
                  public void actionPerformed(ActionEvent arg0) { 
                      jFrame.setTitle(titleName.getText()); 
  
                  } 
              });
  
  }
  </code></pre>