Alibabacloud.com offers a wide variety of articles about graphical user interface components, easily find your graphical user interface components information here online.
12th. Graphical Interface Basics1. is that class the root of the Java GUI component? is the container Class A subclass of component? Which class is the root of the swing GUI build?Java.awt.component is the root of all Java GUI component classes.A container class, such as JFrame, is a subclass of a component.JComponent is the root of the Swing GUI component class.2.AWT c
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
: ObjectOutputStreamProperty plus a transient modifier whose job is not serializedJava Graphical user interface programmingAWT: Abstract window Toolbox to ensure platform independence, but heavily dependent on downlevel operating systems-weight componentsSwing: With better platform independence and portability-lightweight components.Component three elements: (con
Ext: 77971197/Python supports third-party libraries for a variety of graphical interfaces, including:
WxWidgets
Qt
Gtk
The Tkinter:tkinter module (TK interface) is the interface for Python's standard Tk GUI toolkit. Tk and Tkinter can be used on most Unix platforms and can also be applied to Windows and Macintosh systems. Subsequ
use Borders, both of which are part of the Java tutorial .
For more information about these topics, see the Swing package description and Java Tutorials section of the JComponent Class.JComponentAnd its subclasses record the default values for some properties. For example, JTable the default row height is 16. Each JComponent subclass has the ComponentUI creation ComponentUI as ComponentUI part of its construction. In order to provide a special look and feel, each ComponentUI can be set bac
disadvantage , the first point is:
The processing speed may be a little faster.
Can adapt to different platforms, "write once, use everywhere."
Disadvantages:
The perception depends on the target platform.
Some platforms do not have a rich interface component (early) like Windows or Mac. So the design work of AWT is limited to the "lowest common denominator".
There are different bugs on different platforms.
In
The JAVAAPI provides two sets of components for writing graphical interfaces, AWT and swingSwing is a lightweight GUI component that uses an MVC architecture to design component classes, which are divided into models, attempts, and controllers. The controller handles the interaction of the user with the component, and the model is used to store the data that defi
The basic layout of the graph FlowLayout (flow layout) The components that are placed are automatically arranged from left to right from top to bottomBoerlayout (Border layout) is divided into the upper and lower left and right five partsGridLayout (Grid layout) input the number of rows and columns required creates a grid-like layoutBxolayout (box layout) Vertical or horizontal layout components are limited
Python supports Third-party libraries for a variety of graphical interfaces, including:
WxWidgets
Qt
Gtk
The Tkinter:tkinter module (TK interface) is the interface of the standard TK GUI Toolkit for Python. Tk and Tkinter can be used on most Unix platforms and can also be applied to Windows and Macintosh systems. Subsequent versions of Tk8.0 can be implemented i
construction Methods: Gauge (Parent,id,range=100,pos,size,style=ga_horizontal)Range refers to the value of an end point specified when the progress bar is loaded, and the program will confirm that the current progress bar should be more than full. The style specifies whether the load is loaded horizontally or vertically, and is loaded vertically ga_verticalUnlike some other components, it is not enough to construct the progress bar in the window alon
1. press Alt + Ctrl + F1 to switch to the character Interface2. press Alt + Ctrl + F7 to switch to the graphic interfaceIf you want to invoke command prompt in Ubuntu every time, you can run the following command:
$ Echo "false" | sudo tee/etc/X11/default-display-Manager
When you start the next time, it will be triggered in the command mode. If you want to change the X Window, you can enter:
$ Echo "/usr/bin/MCM" | sudo tee/etc/X11/default-display-Manager
To enable the graphic
This semester is mainly in the ACM competition up. The game is over. Unknowingly 15 weeks, this week will be the Java exam. Let's review java. The purpose of Java learning is to let us learn from it, so that we can use Java to develop small projects. Instead of just dealing with exams. Today, a review of the graphical user interface, the implementation of the mon
This semester is mainly in the ACM game up, the game is over. Unknowingly 15 weeks, this week will be the Java exam, review Java bar. The purpose of Java learning is to let us learn from it, so that we can use Java to develop small projects. Instead of just coping with the exam, I reviewed it today. Graphical user interface, the implementation of the monitoring h
First, the layout1. ComponentsAn object that is graphically displayed on the screen, interacting with the user, is called a component.Components include: menus, labels, text boxes (password boxes), scroll bars, radio, check, buttons, and so on.2. ContainersComponents cannot be displayed independently, only the assembly can be placed in a container for normal display.Arranging and distributing components in
Creating a GUI program in Java requires at least three types of objects:
* Component
* Events
* Listener
Pushcounter is a startup class and only displays a button (marked as "Push me !"), Press the button to update the counter to display the latest results.
// Pushcounter. Java// Demonstrate a graphical user interface and listener
Import javax. Swing. jframe;
Pub
. SetValue (File.read ()) File.close ()#save函数几乎和load一样, except that it has a ' W ' attribute and the Write method.#GetValue用于从文本区获得信息Def save (Event): file = open (filename. GetValue (), ' W ') file.write (contents. GetValue ()) File.close ()
Program Listing 6: The final program
import wxdef Load (event): File = open (filename. GetValue ()) contents. SetValue (File.read ()) File.close () def Save (event): File = open (filename. GetValue (), ' W ') file.write (contents.
Environment: VC6 Sp5,vs 2005,win2k+,platform SDK
In order to start the program in another user context, Win2K provides a command-line program tool--runas. The same functionality can be found on the web (such as www.codeguru.com) and code. I was asked to make a version of the graphical user interface for this tool. Thi
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.