1 44 45 package org.jfree.ui; 46 47 import java.awt.BorderLayout ; 48 49 import javax.swing.JButton ; 50 import javax.swing.JPanel ; 51 52 58 public class L1R1ButtonPanel extends JPanel { 59 60 61 private JButton left; 62 63 64 private JButton right; 65 66 72 public L1R1ButtonPanel(final String leftLabel, final String rightLabel) { 73 74 setLayout(new BorderLayout ()); 75 this.left = new JButton (leftLabel); 76 this.right = new JButton (rightLabel); 77 add(this.left, BorderLayout.WEST); 78 add(this.right, BorderLayout.EAST); 79 80 } 81 82 87 public JButton getLeftButton() { 88 return this.left; 89 } 90 91 96 public JButton getRightButton() { 97 return this.right; 98 } 99 100 } 101 | Popular Tags |