org.jfree.ui

Class L1R2ButtonPanel

public class L1R2ButtonPanel extends JPanel

A 'ready-made' panel that has one button on the left and two buttons on the right - nested panels and layout managers take care of resizing.

Author: David Gilbert

Constructor Summary
L1R2ButtonPanel(String label1, String label2, String label3)
Standard constructor - creates a three button panel with the specified button labels.
Method Summary
JButtongetLeftButton()
Returns a reference to button 1, allowing the caller to set labels, action-listeners etc.
JButtongetRightButton1()
Returns a reference to button 2, allowing the caller to set labels, action-listeners etc.
JButtongetRightButton2()
Returns a reference to button 3, allowing the caller to set labels, action-listeners etc.

Constructor Detail

L1R2ButtonPanel

public L1R2ButtonPanel(String label1, String label2, String label3)
Standard constructor - creates a three button panel with the specified button labels.

Parameters: label1 the label for button 1. label2 the label for button 2. label3 the label for button 3.

Method Detail

getLeftButton

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

Returns: the left button.

getRightButton1

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

Returns: the right button 1.

getRightButton2

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

Returns: the right button 2.