/*
 * Decompiled with CFR 0_132.
 */
package useful;

import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.LayoutManager;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import useful.TabButton;

public class ButtonTabComponent
extends JPanel {
    private static final long serialVersionUID = 1L;
    private JLabel titleLabel;

    public ButtonTabComponent(String title, int index) {
        super(new FlowLayout(0, 0, 0));
        this.setOpaque(false);
        this.titleLabel = new JLabel(title);
        this.add(this.titleLabel);
        this.titleLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));
        TabButton button = new TabButton(this);
        this.add(button);
        this.setBorder(BorderFactory.createEmptyBorder(2, 0, 0, 0));
    }

    public void changeTitle(String title) {
        this.titleLabel.setName(title);
    }
}

