awt

Undo Text using Ctrl Z in Java

Submitted by donbermoy on
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

BorderLayout as Layout Manager in Java

Submitted by donbermoy on
This tutorial is about the BorderLayout as Layout Manager in Java. A BorderLayout is a layout where it has a rectangular screen area divided into five regions - North, South, East, West, and Center position regions. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of borderLayout.java. 2.

JColorChooser Component in Java

Submitted by donbermoy on
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

Submitted by donbermoy on
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.