package ui.tabs.transfers;
import java.awt.BorderLayout;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import transfer.ui.TransferJTable;
import transfer.ui.TransferTableModel;
public abstract class AbstractTransferPanel extends JPanel
{
protected static final String[] HEADINGS =
{
"ID", "Name", "Size", "%", "Speed", "Sources"
};
protected AbstractTransferPanel(String title, TransferTableModel tableModel)
{
setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(),
title, TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION));
setLayout(new BorderLayout());
JComponent scrollTable = new JScrollPane(new TransferJTable(tableModel));
add(scrollTable, BorderLayout.CENTER);
}
}