/*    */ package useful;
/*    */ 
/*    */ import java.awt.FlowLayout;
/*    */ import javax.swing.BorderFactory;
/*    */ import javax.swing.JLabel;
/*    */ import javax.swing.JPanel;
/*    */ 
/*    */ public class ButtonTabComponent
/*    */   extends JPanel
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private JLabel titleLabel;
/*    */   
/*    */   public ButtonTabComponent(String title, int index)
/*    */   {
/* 16 */     super(new FlowLayout(0, 0, 0));
/*    */     
/* 18 */     setOpaque(false);
/*    */     
/*    */ 
/* 21 */     this.titleLabel = new JLabel(title);
/* 22 */     add(this.titleLabel);
/*    */     
/* 24 */     this.titleLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));
/*    */     
/* 26 */     TabButton button = new TabButton(this);
/* 27 */     add(button);
/*    */     
/* 29 */     setBorder(BorderFactory.createEmptyBorder(2, 0, 0, 0));
/*    */   }
/*    */   
/*    */   public void changeTitle(String title) {
/* 33 */     this.titleLabel.setName(title);
/*    */   }
/*    */ }


