Dark Horse Programmer -- [Java Basics] -- GUI (graphical user interface), javagui
I. Overview
1. GUI (GraphicalUser Interface): Also known as graphical user Interface, is a way for computer users to interact with computers.
2. There are two ways for users to interact with computers: GUI and CLI.
(1)
GUI, Graphics User Interface, graphical User Interface. GUI intuitively presents the functions of the computer to the user, and the GUI is more intuitive and easy to accept.
The GUI must be supported by the operating system and hardware. Therefore, GUI programming often ne
Swing was a GUI framework developed by Sun, and at the outset sun was developing the AWT framework. However, the AWT framework has LCD problems. As a result, Sun continued to develop swing on the basis of AWT. Swing is a class that inherits the AWT common components: Text text component Menus menu component Widgets Wid
Java GUI programming (Graphic user Interface, graphical user interface) is implemented on its Abstract Window Toolkit (abstract Windows TOOLKIT,AWT). java.awt is the AWT Tool class library, which includes rich graphics, user interface components, and layout manager support.
The GUI is mainly used in two places:
Application;
Applet.
1
to call an empty method because the class object is created.
The goal is to simplify the programmer's operation, to define the listener to inherit the adapter, only to rewrite the required methods.
20, GUI (need to know)
Event handling
Event: An action for the user
Event Source: The component being manipulated
Listener: An object of a custom class, implements the listener interface, contains the event
On the Java foundation of the article, I think it can also be written in my other blog, is definitely original, and now share to everyone out. --------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- ---------I. OverviewGUI full name graphical user Interfaces, translated into
Part I: Experimental projects
Item I: Documents and options
Objective: To understand how to use the file dialog box and familiarize yourself with the core event-driven steps in the GUI.
1. Read the blog post "jfilechooser (File selection dialog provided by Java Swing)" To understand the effect of the blog post.
2. In the IDE, enter (not copy, paste) posting code, debug and run.
3. In the above interface, ad
Swing's button component. In the Widgets class. To use a button, you must import Jbuttonimport Javax.swing.JButton; the button needs to be added to the Frame inside the package Gui;import Java.awt.frame;import Javax.swing.jframe;import javax.swing.jbutton;/*** Created by admin on 2017/6/30.* Java GUI learning */public class G
Although Java is not currently the backbone of front-end development, but as part of the basics of java, it is necessary to learn Java GUI programming, and can make some small and interesting graphics programs to improve learning Enthusiasm. This study summary is a beginner notes and experience, if there is no descri
Java decompiler,: http://java.decompiler.free.fr/jd-gui/#downloads, the latest version is 0.2.8, written in C ++, support Ms, Mac, Linux three OS, the function is as follows:1. Supports compiling the entire jar file. In this way, the compiled file can be associated with the Lib jar package in eclipse to facilitate viewing the source file.2. Quick source file searching: Ctrl + Shift + T3, 2. Support for deco
make it show in the playJLabel label = new JLabel ("Hello world!", jlabel.center);//center JustifieldAdd a label to the frame, set the frame sizeFrame.add (label);Frame.setsize (500, 300);Frame.setdefaultcloseoperation (jframe.exit_on_close);//end process when user exitsFrame.setvisible (TRUE);//Set frame visibility}}650) this.width=650; "style=" WIDTH:400PX;HEIGHT:237PX; "src=" http://s3.51cto.com/wyfs02/M00/73/10/ Wkiom1xzknsybw6aaabc2ofcjii047.jpg "title=" frame. png "alt=" wkiom1xzknsybw6aa
Java GUI implements the student achievement management system,
I have been learning java for more than a year and have been doing web exercises. In a project, I found that the GUI-related knowledge is required and the results cannot be obtained, there are not many articles in this area on the Internet, so I had to lear
Earlier procedures used the simplest input and output methods, the user input data in the keyboard, the program will output information on the screen. Modern procedures require the use of graphical user interface (graphical user Interface,gui), the interface has a menu, buttons, etc., the user through the mouse to select the menu options and click the button, command program function module. This chapter learns how to write
First, download NetBeans directly after the decompression can be run
NetBeans is a pure Java program. Windows, OS2, OpenVMS, and Linux editions are the same program, but are started through different startup programs. That's a good thing. The Java compiler for pure C + + is much faster than pure java. The syntax analysis and compilation section can be written in
JAVA learning 58th-GUI
GUI
Graghical User Interface (graphical User Interface)
The objects provided by java for the GUI are included in the java. awt and java. swing packages.
Java's
, giving people a sense of insensitivity.The swingworker or Timer class can solve this problem,Swingworker is a class defined by Java-tutorials, not a swing API.
SwingworkerAfter using other threads to execute time-consuming tasks, you can add GUI code to the Event-dispatching thread.The time-consuming task is written in construct (), and the GUI code after the t
Java GUI programming: coin gamePreface: I am very interested in learning java se GUI programming. I don't know why the teacher told me not to spend too much time on GUI programming. "I promise you won't be able to use java
Java is a very powerful programming language, but Java's GUI power has always been its Achilles heel. Although Java offers 2 graphics solutions, AWT and swing. However, these 2 graphics libraries are very limited in functionality, and they do not bring more user experience. And AWT and swing are slow to update. All the while to the
Java GUI (graphical user interface) exercises
6.1.3 a simple GUI Program
Package six; import javax. swing. *; import java. awt. *; import java. awt. event. *; public class Main {private static int numclicks = 0; // number of records private static JFrame frame = new JFrame
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.