Code Monkey home page Code Monkey logo

jmschat's Introduction

JMS chat

image

The provided code is implementing a simple chat application using Java Message Service (JMS) for messaging and communication between users. It consists of the following classes:

JMS:

This class sets up the JMS connection, creates the necessary components (session, publisher, subscriber), and handles sending and receiving messages. It implements the MessageListener interface to listen for incoming messages.

Window:

This class represents the graphical user interface (GUI) window for the chat application. It extends JFrame and provides the chat area, sending area, and send button. It also handles user input and displays received messages. The Window class interacts with the JMS class to send and receive messages.

Main:

This is the entry point of the application. It creates an instance of the Window class, initializing the chat window with a username.

In summary, the code establishes a JMS connection, creates a chat window, allows users to send and receive messages, and displays them in the GUI.

UPD:

To run code you need to start JMS server.

jmschat's People

Contributors

sayres11 avatar

Watchers

 avatar

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.