Home >Java >javaTutorial >what is gui in java
The gui in java refers to the graphical user interface. Java provides three main packages for GUI development, namely the java.awt package, javax.swing package and java.awt.event package.
#Java is an object-oriented programming language. It has many very powerful functions that can achieve a variety of functions. For example, what the editor is going to talk to you about today is the gui.
(Recommended tutorial: java course)
The GUI in Java is the graphical user interface
In the early days, computers faced users What is provided is a monotonous, boring, pure character "command line interface (CLI)".
Even now, we can still vaguely see their presence: open a DOS window in Windows and you can see the footprints of history.
Later, Apple took the lead in implementing a graphical user interface (GUI for short) in the computer operating system
Today, when graphical user interfaces are popular in the world, a Application software without a good GUI cannot be accepted by users.
The Java language also knows the importance of this, and it provides a set of tools that can easily build GUIs.
Java provides three main packages for GUI development:
java.awt package – mainly provides font/layout manager
javax.swing Package [commonly used in commercial development] – mainly provides various components (window/button/text box)
java.awt.event package – event processing, implementation of background functions.
Related recommendations: java introductory tutorial
The above is the detailed content of what is gui in java. For more information, please follow other related articles on the PHP Chinese website!