Examples of NewMsg


Examples of messages.NewMsg

     *
     */    
    private void sendMessage(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendMessage
        try {
            clientConnection.sendMessage(
                    new NewMsg(IMessage.NEW_MSG, message.getText()));
        } catch (Exception ex) {
            throw new ChatException(
                    "Can not send message. " +
                    (ex.getMessage() != null?ex.getMessage(): ""));
        }
View Full Code Here

Examples of messages.NewMsg

                clientConnection = new ClientConnection(
                        new Socket(InetAddress.getByName(tFServerIp.getText()), PORT),
                        new ClientDispatcher());
                clientConnection.start();
                clientConnection.sendMessage(
                        new NewMsg(IMessage.NEW_CLIENT, textLogIn.getText()));
            } catch (UnknownHostException e) {
                throw new ChatException("Don't know about host : " +
                        tFServerIp.getText());
            } catch (IOException e) {
                throw new ChatException("Couldn't get I/O for the connection");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.