Currently my GUI for my solitary game looks like so:
and is laid out by the given code:
The problem with this is that when I begin to get down to the last cards, the control panel shifts positions. It ends up like this:
Is there a simple way to fix this?

public class ElevensGUI extends JFrame { private Layout layout; private ControlPanel panel; public ElevensGUI() { setLayout(new FlowLayout()); setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT); layout = new Layout(); add(layout); panel = new ControlPanel(layout); add(panel); setSize(1100,250); setTitle("Elevens"); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } }
