// Path: omok/gameClient/ClientInterface.java
// public interface ClientInterface {
// 	void sendMessage(String message, short state);
// 	void sendSlip(String to, String text, short message_slip);
// 	GuiInterface getGui();
// 	void changeGui(GuiInterface gui);
// 	void sendMessage(int[] is);
// 	void setSlipTo(String slipTo);
// 	boolean isRoomKing();
// }
// 
// Path: omok/protocolData/ChatData.java
// public class ChatData implements Protocol {
// 	public static final short ENTER = 1000;
// 	public static final short LOGIN_CHECK = 1100;
// 	public static final short LOGIN_ERROR = 1200;
// 	public static final short MESSAGE = 2000;
// 	public static final short MESSAGE_SLIP = 2100;
// 	public static final short EXIT = 3000;
// 	public static final short SEND_USER_LIST = 4000;
// 	public static final short SEND_TOTAL_USER = 4100;
// 	
// 	private static final long serialVersionUID = 1L;
// 
// 	private String name = null,
// 						   message = null;
// 	
// 	private String receiver;
// 	
// 	private short state = 0;
// 
// 	private Vector<String> userList = null;
// 	
// 	
// 	public ChatData(String name, String message, short state) {
// 		this.name = name;
// 		this.message = message;
// 		this.state = state;
// 		if ( ChatData.SEND_USER_LIST == state)
// 			userList = new Vector<String>();
// 	}
// 	
// 	public ChatData(String receiverName, String name, String message, short state) {
// 		this(name, message, state);
// 		receiver = receiverName;
// 	}
// 	
// 	public void setMessage(String message) {
// 		this.message = message;
// 	}
// 
// 	public short getState() {
// 		return state;
// 	}
// 
// 	public Vector<String> getUserList() {
// 		return userList;
// 	}
//  
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public String getMessage() {
// 		return message;
// 	}
// 
// 	public void setUserList(Vector<String> userList) {
// 		this.userList =  null;
// 		this.userList =  userList;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public String toString() {
// 		return name + " " + message + " " + state + "\n" + userList;
// 	}
// 
// 	public String getReceiver() {
// 		return receiver;
// 	}
// 
// 	public short getProtocol() {
// 		return state;
// 	}
// 
// 	public void setProtocol(short exit) {
// 		state = exit;
// 	}
// }


import gameClient.ClientInterface;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import protocolData.ChatData;
			"Cancel");
	
	/*
	 *  쪽지 보낼때의 생성자.
	 */
	public SlipFrame(final String to, String message, boolean isSend, final ClientInterface client) {

		this.to = to;
		this.message = message;
		this.client = client;
		
		this.isSend = isSend;

		if (isSend) { // send
			this.setTitle("쪽지 보내기");
			m_labelID = new JLabel("To...       ");
			m_inputID.setText(to);
			
		} else {
			this.setTitle("받은쪽지");
			m_labelID = new JLabel("From...    "); // recive
			m_message.setText(message);
		}

		showComponent();

		if (isSend) {
			okButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					client.sendSlip(m_inputID.getText(), m_message.getText(),
// Path: omok/gameClient/ClientInterface.java
// public interface ClientInterface {
// 	void sendMessage(String message, short state);
// 	void sendSlip(String to, String text, short message_slip);
// 	GuiInterface getGui();
// 	void changeGui(GuiInterface gui);
// 	void sendMessage(int[] is);
// 	void setSlipTo(String slipTo);
// 	boolean isRoomKing();
// }
// 
// Path: omok/protocolData/ChatData.java
// public class ChatData implements Protocol {
// 	public static final short ENTER = 1000;
// 	public static final short LOGIN_CHECK = 1100;
// 	public static final short LOGIN_ERROR = 1200;
// 	public static final short MESSAGE = 2000;
// 	public static final short MESSAGE_SLIP = 2100;
// 	public static final short EXIT = 3000;
// 	public static final short SEND_USER_LIST = 4000;
// 	public static final short SEND_TOTAL_USER = 4100;
// 	
// 	private static final long serialVersionUID = 1L;
// 
// 	private String name = null,
// 						   message = null;
// 	
// 	private String receiver;
// 	
// 	private short state = 0;
// 
// 	private Vector<String> userList = null;
// 	
// 	
// 	public ChatData(String name, String message, short state) {
// 		this.name = name;
// 		this.message = message;
// 		this.state = state;
// 		if ( ChatData.SEND_USER_LIST == state)
// 			userList = new Vector<String>();
// 	}
// 	
// 	public ChatData(String receiverName, String name, String message, short state) {
// 		this(name, message, state);
// 		receiver = receiverName;
// 	}
// 	
// 	public void setMessage(String message) {
// 		this.message = message;
// 	}
// 
// 	public short getState() {
// 		return state;
// 	}
// 
// 	public Vector<String> getUserList() {
// 		return userList;
// 	}
//  
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public String getMessage() {
// 		return message;
// 	}
// 
// 	public void setUserList(Vector<String> userList) {
// 		this.userList =  null;
// 		this.userList =  userList;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 	
// 	public String toString() {
// 		return name + " " + message + " " + state + "\n" + userList;
// 	}
// 
// 	public String getReceiver() {
// 		return receiver;
// 	}
// 
// 	public short getProtocol() {
// 		return state;
// 	}
// 
// 	public void setProtocol(short exit) {
// 		state = exit;
// 	}
// }


// Path: omok/gui/SlipFrame.java
import gameClient.ClientInterface;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import protocolData.ChatData;

			"Cancel");
	
	/*
	 *  쪽지 보낼때의 생성자.
	 */
	public SlipFrame(final String to, String message, boolean isSend, final ClientInterface client) {

		this.to = to;
		this.message = message;
		this.client = client;
		
		this.isSend = isSend;

		if (isSend) { // send
			this.setTitle("쪽지 보내기");
			m_labelID = new JLabel("To...       ");
			m_inputID.setText(to);
			
		} else {
			this.setTitle("받은쪽지");
			m_labelID = new JLabel("From...    "); // recive
			m_message.setText(message);
		}

		showComponent();

		if (isSend) {
			okButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					client.sendSlip(m_inputID.getText(), m_message.getText(),
							 ChatData.MESSAGE_SLIP);