Java network chat Applet
This applet simulates a network chat, in which the user chats with someone over a network. Here, there is no […]
Programming powers modern technology — from desktop software and websites to mobile apps, games and enterprise systems. Strong programming skills remain essential for developers, students and technology professionals building modern digital solutions.
MYCPLUS has been publishing programming tutorials, source code examples and practical development guides since 2007. This programming hub brings together tutorials for C, C++, C#, Java, JavaScript, PHP and Python, along with game development and real-world coding examples designed for hands-on learning.
You will find beginner-friendly programming tutorials, practical source code examples and advanced development guides covering object-oriented programming, debugging, modern programming techniques and professional software development practices. Whether you are learning your first language, improving coding skills or exploring modern development technologies, this section provides structured resources for real-world programming and software engineering.
Why MYCPLUS: One of the web’s longest-running programming resources — trusted since 2007 with hundreds of tutorials, practical coding guides, source code examples and developer learning resources designed for real-world programming skills.
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 source code is an example of a Graphical User Interface (GUI) with different GUI elements such as TextBox, Buttons, TextArea, Text Area and Labels. It is implemented using Java Swing API which provides a set of “lightweight” (all-Java language) components. This code example extends the functionality of JFrame class to show a JFrame window and Implements ActionListener on buttons to catch the click event on those buttons.