Java Program to create Login Window using AWT Controls

This article is based on the Java Program to create Login Window using AWT Controls. Here we will use the AWT components Label, Button and Textfield. We will see the code to create a user_name and password text fields with login and signup buttons.
AWT program in Java with output:

let’s get started.

Awt Program in java with Output to create Login Window:

Output: Save the file with .java extension and open the command prompt on that directory and run the following code.

C:\java>javac LoginWindowAWT.java
C:\java>java LoginWindowAWT

You will see the following result:


This is the end of the article to create a Login Window with AWT program in Java with output.
Learn more about Java Programs.