Java network chat Applet
This applet simulates a network chat, in which the user chats with someone over a network. Here, there is no […]
This applet simulates a network chat, in which the user chats with someone over a network. Here, there is no […]
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.
This program evaluates postfix expressions entered by the user. The expressions can use non-negative real nubmers and the operators +,
A little applet that demonstrates JRadionButton with a group of radio buttons that control the background color of a label.
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.
This short program demonstrates the URL and URLConnection classes by attempting to open a connection to a URL and read
A RGBColorChooser shows three sliders that the user can manipulate to set the red, green, and blue, components of a
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.
This program demonstrates a few routines for processing binary sort trees. It uses a binary sort tree of strings. The
The StopWatch class introduces a versatile stopwatch component with enhanced functionality in Java. Extending JLabel and implementing the MouseListener interface, this interactive component not only measures elapsed time but also dynamically updates to display the current time in the format “Hours:Minutes:Seconds:Milliseconds”.
The program demonstrates sorting techniques by sorting a list of words based on their frequency count. Novice programmers can learn about basic file handling, data structures, generics, and sorting algorithms through this program, gaining foundational knowledge applicable to a wide range of Java applications.
This Java Program solves the Towers of Hanoi problem for a tower of 10 disks. Ten differently-sized disks are stacked in a pile, in order of decreasing size. There are two other places for piles. The object is to move the pile to the second available place, subject to the rules that only one disk at a time can be moved, and no disk can be piled on top of a smaller disk. The Towers of Hanoi problem is a standard example of recursion.