Tag: Source Code

Java Chat Program for Real-Time Communication

This is a Java Application program that supports two way real time chatting or communication between two users over the Internet. The program can be run either as a standalone application or as a client-server application.

Read More

PostFix expression evaluator – Java

This program evaluates postfix expressions entered by the user. The expressions can use non-negative real nubmers and the operators +, -, *, /, and ^ (where ^ represents exponentiation). Numbers must begin with a digit. That is,...

Read More

JRadioButton Demonstration – Java

A little applet that demonstrates JRadionButton with a group of radio buttons that control the background color of a label. [code=’java’] /******************************************************* * MYCPLUS Sample Code...

Read More

Interactive Java Color Palette: Select and Display HEX Color Values

This Java code defines a simple graphical user interface (GUI) component called RainbowPalette. This component represents a color palette that features a spectrum of hues. Users can interact with the palette by clicking on different colors, and the selected color’s HEX value is displayed in a text box below the palette.

Read More

Simple Mouse Tracker GUI using Java Swing

This Java source code defines a simple mouse tracking program using Swing which is a graphical user interface toolkit. The program displays a window with a drawing surface that captures and visualizes various mouse events. The mouse’s current coordinates, modifier keys (Shift, Control, Meta, and Alt), and the type of the most recent mouse event are displayed in real-time on the window.

Read More