awt

Undo Text using Ctrl Z in Java

This tutorial will teach you how to create a program that can undo a text using a shortcut key of ctrl+z in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of undoCtrlZ.java. 2. Import the following package library: import java.awt.event.*; //used to access ActionEvent class import javax.swing.*; //used to access AbstractAction,JFrame

JColorChooser Component in Java

Today, i will teach you how to create a program that has the JColorChooser component in Java. We have ColorDialog in VB.NET and C# and this is equivalent to the JColorChooser in Java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of colorChooser.java. 2. Import java.awt.* and javax.swing.* packages because we will going to have the JColorChooser component in swing and also the JPanel as the container of this.

Display Current Date in Java GUI

This is my other java tutorial that i will teach you how to load and display the current date in Java GUI. Of course, it is a too little hassle because java has complicated codes in showing current date compared to other languages such as visual basic. Now, let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of DateText.java. 2.