Package chatroom.connection

Examples of chatroom.connection.ClientConnection


            @Override
            public void actionPerformed(ActionEvent ae) {
                try {
                    // establish connection
                    clientConnection = new ClientConnection(login.getServer(),
                            Integer.valueOf(login.getPort()));
                    clientConnection.start();
                } catch (IOException ex) {
                    Logger.getLogger(ChatroomClient.class.getName()).log(Level.SEVERE, null, ex);
                    return;
View Full Code Here


        if (chatPane.getLength() == 0) {
            return;
        }
        String msg = chatPane.getText();
        //System.err.println(msg);
        ClientConnection connection = ChatroomClient.getClient().getConnection();
        if (chatPane.isPrivate()) {
            connection.sendPrivateMessage(getName(), ChatroomClient.getClient().getUserName(), chatPane.getRecipient(), msg);
        } else {
            connection.sendGroupMessage(getName(), ChatroomClient.getClient().getUserName(), msg);
        }
        chatPane.clearAll();
    }
View Full Code Here

TOP

Related Classes of chatroom.connection.ClientConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.