Class TCPChat

java.lang.Object
  extended byTCPChat
All Implemented Interfaces:
java.lang.Runnable

public class TCPChat
extends java.lang.Object
implements java.lang.Runnable


Field Summary
static int BEGIN_CONNECT
           
static javax.swing.JTextField chatLine
           
static javax.swing.JTextArea chatText
           
static javax.swing.JButton connectButton
           
static int CONNECTED
           
static int connectionStatus
           
static javax.swing.JButton disconnectButton
           
static int DISCONNECTED
           
static int DISCONNECTING
           
static java.lang.String END_CHAT_SESSION
           
static javax.swing.JRadioButton guestOption
           
static java.lang.String hostIP
           
static javax.swing.JRadioButton hostOption
           
static java.net.ServerSocket hostServer
           
static java.io.BufferedReader in
           
static javax.swing.JTextField ipField
           
static boolean isHost
           
static javax.swing.JFrame mainFrame
           
static int NULL
           
static java.io.PrintWriter out
           
static int port
           
static javax.swing.JTextField portField
           
static java.net.Socket socket
           
static javax.swing.JPanel statusBar
           
static javax.swing.JTextField statusColor
           
static javax.swing.JLabel statusField
           
static java.lang.String[] statusMessages
           
static java.lang.String statusString
           
static TCPChat tcpObj
           
static java.lang.StringBuffer toAppend
           
static java.lang.StringBuffer toSend
           
 
Constructor Summary
TCPChat()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
See Also:
Constant Field Values

DISCONNECTED

public static final int DISCONNECTED
See Also:
Constant Field Values

DISCONNECTING

public static final int DISCONNECTING
See Also:
Constant Field Values

BEGIN_CONNECT

public static final int BEGIN_CONNECT
See Also:
Constant Field Values

CONNECTED

public static final int CONNECTED
See Also:
Constant Field Values

statusMessages

public static final java.lang.String[] statusMessages

tcpObj

public static final TCPChat tcpObj

END_CHAT_SESSION

public static final java.lang.String END_CHAT_SESSION

hostIP

public static java.lang.String hostIP

port

public static int port

connectionStatus

public static int connectionStatus

isHost

public static boolean isHost

statusString

public static java.lang.String statusString

toAppend

public static java.lang.StringBuffer toAppend

toSend

public static java.lang.StringBuffer toSend

mainFrame

public static javax.swing.JFrame mainFrame

chatText

public static javax.swing.JTextArea chatText

chatLine

public static javax.swing.JTextField chatLine

statusBar

public static javax.swing.JPanel statusBar

statusField

public static javax.swing.JLabel statusField

statusColor

public static javax.swing.JTextField statusColor

ipField

public static javax.swing.JTextField ipField

portField

public static javax.swing.JTextField portField

hostOption

public static javax.swing.JRadioButton hostOption

guestOption

public static javax.swing.JRadioButton guestOption

connectButton

public static javax.swing.JButton connectButton

disconnectButton

public static javax.swing.JButton disconnectButton

hostServer

public static java.net.ServerSocket hostServer

socket

public static java.net.Socket socket

in

public static java.io.BufferedReader in

out

public static java.io.PrintWriter out
Constructor Detail

TCPChat

public TCPChat()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)