title: Getting text from JTextArea, and calling it to the ActionPerformed method
body: <p>Okay. So I will start off and say this is ALL in one class.</p>
  
  <p>Now, I have a bunch of buttons that are displayed on the GamePage to allow me to open up multiple different frames when these are pushed. So. I have the buttons all working, and all the frames open up perfectly fine. So now, Inside those frames that can be opened up, I have a JTextArea. Inside that JTextArea is where I allow people to enter what they want, and they press a button, and it will essentially get sent back to to actionPerformed method, in theory.</p>
  
  <p>But...I haven't been able to get that to work. Here is the bare minimum that you will need.</p>
  
  <p><strong>ACTIONPERFORMED METHOD</strong></p>
  
  <pre><code>public void actionPerformed(ActionEvent event)
  {
      if(event.getActionCommand().equals("M 100"))
      {
          math100();
      }
      if(event.getActionCommand().equals("Answer M 100"))
      {
          //THIS IS WHERE IF THEY PUSH THE BUTTON ON THE FRAME, 
          //IT WILL SEND THE JTEXTAREA TEXT BACK TO HERE. THEN IT WILL DISPLAY 
          //IF THE ANSWER IS CORRECT OR NOT. BUT I CANT GET THE TEXT TO BE 
          //SENT BACK HERE....
      }
  </code></pre>
  
  <p><strong>METHODS FOR THE QUESTIONS</strong>
  This is suppose to send JTextArea words that the users enter, back to the specific if statement in the ActionPerformed method. </p>
  
  <pre><code>public static void math100()
  {
      JFrame m100Frame = new JFrame("100 Point Math Question");
      m100Frame.setSize(350,350);
      m100Frame.setLocationRelativeTo(null);
      JPanel pane = new JPanel();
      m100Frame.setContentPane(pane);
  
      JLabel question = new JLabel("&lt;html&gt;&lt;p&gt;&lt;div WIDTH = 320&gt;&lt;center&gt;Round 1,291,293 to the nearest thousands, and round 8.472 to the nearest hundredth.&lt;/p&gt;&lt;p&gt;Put answers in box below, and have the word 'and' between the two answers.&lt;/center&gt;&lt;/width&gt;&lt;/div&gt;&lt;/html&gt;");
  
      JTextArea answerArea = new JTextArea("",10,25);
  
      JButton answerButton = new JButton("Answer M 100");
      answerButton.addActionListener(new GamePage());
  
  
      pane.add(question);
      pane.add(answerArea);
      pane.add(answerButton);
  
      m100Frame.setVisible(true);
      m100Frame.toFront();
  }
  </code></pre>
  
  <p>What I want it to do is make it so that the JTextArea sends the text in that area, AFTER THE BUTTON ON THE MATH100 FRAME IS PUSHED, to the if statement, then checks if what they entered is right or wrong...But I cannot get the text to send to that if statement.</p>