1 34 35 36 package org.krysalis.jcharts.designer.buttonBar; 37 38 39 import org.krysalis.jcharts.designer.tabs.LowerHalfPanel; 40 41 import javax.swing.*; 42 43 44 49 public class ButtonPanel extends JPanel 50 { 51 private LowerHalfPanel lowerHalfPanel; 52 private RefreshChartButton refreshChartButton; 53 54 55 59 public ButtonPanel( LowerHalfPanel lowerHalfPanel ) 60 { 61 super(); 62 63 this.lowerHalfPanel = lowerHalfPanel; 64 65 super.setBorder( BorderFactory.createEmptyBorder( 5, 5, 0, 5 ) ); 66 67 super.setLayout( new BoxLayout( this, BoxLayout.X_AXIS ) ); 68 69 super.add( Box.createHorizontalGlue() ); 71 72 this.refreshChartButton = new RefreshChartButton( this ); 73 super.add( this.refreshChartButton ); 74 } 75 76 77 public LowerHalfPanel getLowerHalfPanel() 78 { 79 return lowerHalfPanel; 80 } 81 } 82 | Popular Tags |