Package ui.tabs.transfers

Source Code of ui.tabs.transfers.AbstractTransferPanel

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);
  }

}
TOP

Related Classes of ui.tabs.transfers.AbstractTransferPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.