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 L1R3ButtonPanel extends JPanel { 59 60 61 private JButton left; 62 63 64 private JButton right1; 65 66 67 private JButton right2; 68 69 70 private JButton right3; 71 72 80 public L1R3ButtonPanel(final String label1, final String label2, final String label3, final String label4) { 81 82 setLayout(new BorderLayout ()); 83 84 final JPanel panel = new JPanel (new BorderLayout ()); 86 final JPanel panel2 = new JPanel (new BorderLayout ()); 87 this.left = new JButton (label1); 88 this.right1 = new JButton (label2); 89 this.right2 = new JButton (label3); 90 this.right3 = new JButton (label4); 91 92 panel.add(this.left, BorderLayout.WEST); 94 panel2.add(this.right1, BorderLayout.EAST); 95 panel.add(panel2, BorderLayout.CENTER); 96 panel.add(this.right2, BorderLayout.EAST); 97 add(panel, BorderLayout.CENTER); 98 add(this.right3, BorderLayout.EAST); 99 100 } 101 102 107 public JButton getLeftButton() { 108 return this.left; 109 } 110 111 116 public JButton getRightButton1() { 117 return this.right1; 118 } 119 120 125 public JButton getRightButton2() { 126 return this.right2; 127 } 128 129 134 public JButton getRightButton3() { 135 return this.right3; 136 } 137 138 } 139 | Popular Tags |