GithubHelp home page GithubHelp logo

yashvendra / chatmessenger Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 27 KB

💬Chat messenger with Swing GUI created in Java.

License: MIT License

Java 100.00%
java chat-messenger chatroom swing-gui socket-programming stream

chatmessenger's Introduction

chatMessenger

Welcome Everyone!!

I have created a simple 💬 Chat Messenger using networking libraries of Java. For the front end I have used JFrame class of Swing.

Usage

1. Set the host IP in ClientTest.java.

I have set it to local host, you can set it to the Host's public IP if you want.

import javax.swing.JFrame;

public class ClientTest {
  public static void main(String args[]){
    Client cl=new Client("127.0.0.1");
    cl.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    cl.startRunning();

  }
}

2. Compile the TestServer.java and ClientTest.java by javac compiler.

On Server Machine:

javac TestServer.java

On Client Machine:

javac ClientTest.java

3. Run the compiled TestServer.class and ClientTest.class files.

On Server Machine:

java TestServer

You will have server window opened which starts listening for connections on port 1234.

On Client Machine:

java ClientTest

Connection will be established if no error is thrown and client window will popup. Communication can be done now!

Happy Chatting ♥️

chatmessenger's People

Contributors

yashvendra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

5l1v3r1 innaaa1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.