KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > dso > ClientsPanel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.dso;
5
6 import com.tc.admin.common.XContainer;
7
8 import java.awt.BorderLayout JavaDoc;
9
10 import javax.swing.JScrollPane JavaDoc;
11
12 public class ClientsPanel extends XContainer {
13   private ClientsTable m_table;
14
15   public ClientsPanel(DSOClient[] clients) {
16     super(new BorderLayout JavaDoc());
17     add(new JScrollPane JavaDoc(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