Friday , November 22 2019

JAVA #29 – Introduction of GUI in Java

Introduction to Java GUI

Types of Desktop GUI in Java:

  1. AWT
  2. Swings

 

Abstract Window Toolkit (AWT) is a set of application program interfaces ( API s) used by Java programmers to create graphical user interface ( GUI ) objects, such as buttons, scroll bars, and windows.AWT is part of the Java Foundation Classes ( JFC ) from Sun Microsystems, the company that originated Java.

Swing is a GUI widget toolkit for Java. It is part of Oracle’s Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.

 

package javaguiapp01;

import javax.swing.JFrame;

public class JavaGUIApp01 {
    public static void main(String[] args) {
        JFrame Form = new JFrame();
        Form.setBounds(150, 150, 500, 400);
        Form.setTitle("First GUI App");
        Form.setVisible(true);
        Form.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    
}

 

About Faheem

Faheem
An adaptable and responsible Software Engineer, who enjoys working with computers and the opportunity to learn new skills and work with new technologies is particularly attractive to me.

Check Also

JAVA #32 – Java application using SQL server (Part: 01)

  In this part we made the GUI front end of a Application.

One comment

Leave a Reply

Your email address will not be published.