Files
narya/tests/src/java/com/threerings/crowd/client/JabberPanel.java
T
Michael Bayne 9d2505c115 Added a simple chat server test framework onto which I will built a
JME-based client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3512 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-20 22:30:19 +00:00

41 lines
904 B
Java

//
// $Id$
package com.threerings.crowd.client;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.micasa.client.ChatPanel;
import com.threerings.micasa.client.OccupantList;
/**
* Displays a simple chat view.
*/
public class JabberPanel extends JPanel
implements PlaceView
{
public JabberPanel (CrowdContext ctx)
{
_ctx = ctx;
setLayout(new BorderLayout());
add(new ChatPanel(ctx), BorderLayout.CENTER);
add(new OccupantList(ctx), BorderLayout.EAST);
}
// documentation inherited from interface PlaceView
public void willEnterPlace (PlaceObject plobj)
{
}
// documentation inherited from interface PlaceView
public void didLeavePlace (PlaceObject plobj)
{
}
protected CrowdContext _ctx;
}