title: Java- Main method cannot be found in class
body: <p>I knows that this subject has been breached a few times, but I ran into an error when fixing it the way that it was said to be fixed in the others ones.</p>
  
  <pre><code>public static class FlowAp extends JFrame{
      String one = "One";
      String two = "Two";
      String three = "Three";
      String four = "Four";
      String five = "Five";
  
  public static void main(String argv[]){
      FlowAp fa=new FlowAp();
      //Change from BorderLayout default
      fa.getContentPane().setLayout(new FlowLayout());
      fa.setSize(200,200);
      fa.setVisible(true);
  }
  FlowAp(){
  
      JButton one = new JButton("One");
      getContentPane().add(one);
      JButton two = new JButton("Two");
      getContentPane().add(two);
      JButton three = new JButton("Three");
      getContentPane().add(three);
      JButton four = new JButton("four");
      getContentPane().add(four);
      JButton five = new JButton("five");
      getContentPane().add(five);
  
  }
  }
  </code></pre>
  
  <p>When I actually put in the parenthesis where they look as though they should be, another error shows up with the flowap."invalid method declaration"</p>