Package org.jfree.ui

Class L1R1ButtonPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class L1R1ButtonPanel extends JPanel
A 'ready-made' panel that has one button on the left and another button on the right - a layout manager takes care of resizing.
See Also:
  • Field Details

    • left

      private JButton left
      The button on the left.
  • Constructor Details

    • L1R1ButtonPanel

      public L1R1ButtonPanel(String leftLabel, String rightLabel)
      Standard constructor - creates a two-button panel with the specified labels.
      Parameters:
      leftLabel - the label for the left button.
      rightLabel - the label for the right button.
  • Method Details

    • getLeftButton

      public JButton getLeftButton()
      Returns a reference to button 1, allowing the caller to set labels, action-listeners etc.
      Returns:
      the button.
    • getRightButton

      public JButton getRightButton()
      Returns a reference to button 2, allowing the caller to set labels, action-listeners etc.
      Returns:
      the button.