/** * Standard constructor - creates a two-button panel with the specified labels. * * @param leftLabel the label for the left button. * @param rightLabel the label for the right button. */ public L1R1ButtonPanel(final String leftLabel, final String rightLabel) { setLayout(new BorderLayout()); this.left = new JButton(leftLabel); this.right = new JButton(rightLabel); add(this.left, BorderLayout.WEST); add(this.right, BorderLayout.EAST); }
/** * Standard constructor - creates a two-button panel with the specified labels. * * @param leftLabel the label for the left button. * @param rightLabel the label for the right button. */ public L1R1ButtonPanel(final String leftLabel, final String rightLabel) { setLayout(new BorderLayout()); this.left = new JButton(leftLabel); this.right = new JButton(rightLabel); add(this.left, BorderLayout.WEST); add(this.right, BorderLayout.EAST); }
/** * Standard constructor - creates a two-button panel with the specified labels. * * @param leftLabel the label for the left button. * @param rightLabel the label for the right button. */ public L1R1ButtonPanel(final String leftLabel, final String rightLabel) { setLayout(new BorderLayout()); this.left = new JButton(leftLabel); this.right = new JButton(rightLabel); add(this.left, BorderLayout.WEST); add(this.right, BorderLayout.EAST); }