title: setLayout(LayoutManager) not applicable for arguments
body: <p>i'm trying to compile this pretty simple test of a BoxLayout manager and I keep getting this error : "The method setLayout(LayoutManager) in the type Container is not applicable for the arguments (Layouttest)" on my line panel.setLayout(new Layouttest(panel, Layouttest.Y_AXIS));.
   Apologies if this is a really simple question, i'm still trying to get the hang of this. </p>
  
  <pre><code>import java.awt.BorderLayout;
  import java.awt.Color;
  
  import javax.swing.JButton;
  import javax.swing.JFrame;
  import javax.swing.JPanel;
  public class Layouttest extends JFrame {
  
  public static void main(String[] args) {
      SimpleGui1B gui = new SimpleGui1B();
      gui.go();
  
  }
  
  public void go(){
  
  
      JFrame frame = new JFrame();
      JPanel panel = new JPanel();
  
      panel.setBackground(Color.darkGray);
      panel.setLayout(new Layouttest(panel, Layouttest.Y_AXIS));
  
      JButton button = new JButton ("Button A");
      JButton buttonTwo = new JButton ("Button B");
  
      panel.add(button);
      panel.add(buttonTwo);
  
      frame.getContentPane().add(BorderLayout.EAST, panel);
      frame.setSize(250,200);
      frame.setVisible(true);
      }
  }
  </code></pre>
  
  <p>Thank you for any help.</p>