I'm using the Box class for one of my applets to organize my buttons.
The problem I'm having is getting the buttons to shift downward to the bottom of the window. The code with // behind it shows the methods I've tried using and that haven't worked. Is anyone able to help me?Code:import java.awt.*;
import javax.swing.*;
public class conceptstemplate extends JApplet
{
Box sidebar = new Box (BoxLayout.LINE_AXIS);
JButton next = new JButton ("Next >");
JButton previous = new JButton ("< Previous");
JButton mmenu = new JButton ("Main Menu");
public void init ()
{
setSize (1000, 600);
setBackground (Color.lightGray);
//sidebar.add (Box.createRigidArea (new Dimension (50, 450)));
//sidebar.add (Box.createVerticalStrut (450));
//sidebar.setBounds (0, 450, getWidth (), 150);
//sidebar.add (Box.createHorizontalGlue ());
sidebar.add (Box.createHorizontalStrut (50));
sidebar.add (mmenu);
sidebar.add (Box.createHorizontalStrut (600));
sidebar.add (previous);
sidebar.add (Box.createHorizontalStrut (50));
sidebar.add (next);
add (sidebar);
}
}

