1 4 package com.tc.admin.dso; 5 6 import com.tc.admin.common.XContainer; 7 8 import java.awt.BorderLayout ; 9 10 import javax.swing.JScrollPane ; 11 12 public class ClientsPanel extends XContainer { 13 private ClientsTable m_table; 14 15 public ClientsPanel(DSOClient[] clients) { 16 super(new BorderLayout ()); 17 add(new JScrollPane (m_table = new ClientsTable(clients))); 18 } 19 20 public void setClients(DSOClient[] clients) { 21 m_table.setClients(clients); 22 } 23 24 public void add(DSOClient client) { 25 m_table.addClient(client); 26 } 27 28 public void remove(DSOClient client) { 29 m_table.removeClient(client); 30 } 31 } 32 | Popular Tags |