Java Swing Введение

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
(О Swing)
(нарушало авторские права)
 
(10 промежуточных версий не показаны.)
Строка 1: Строка 1:
-
This is an introductory Swing tutorial. The purpose of this tutorial is to get you started with the Java Swing toolkit. The tutorial has been created and tested on Linux.
 
-
== О Swing ==
 
-
Библиотека Swing - это официальный Java GUI инструментарий, выпущенный Sun Microsystems.
 
-
 
-
Основные характеристики Swing:
 
-
* платформонезависимость
 
-
* настраиваемость
 
-
* расширяемость
 
-
* конфигурируемость
 
-
* легковесность
 
-
Swing состоит из следующих пакетов
 
-
* javax.swing
 
-
* javax.swing.border
 
-
* javax.swing.colorchooser
 
-
* javax.swing.event
 
-
* javax.swing.filechooser
 
-
* javax.swing.plaf
 
-
* javax.swing.plaf.basic
 
-
* javax.swing.plaf.metal
 
-
* javax.swing.plaf.multi
 
-
* javax.swing.plaf.synth
 
-
* javax.swing.table
 
-
* javax.swing.text
 
-
* javax.swing.text.html
 
-
* javax.swing.text.html.parser
 
-
* javax.swing.text.rtf
 
-
* javax.swing.tree
 
-
* javax.swing.undo
 
-
Возможно Swing  - самый продвинутый инструментарий на этой планете. Он имеет богатый набор виджетов. От простых виджетоа, таких как Button, Label, Scrollbar до продвинутых виджетов - Tree и Table.
 
-
 
-
Swing на 100% написан на java.
 
-
 
-
Swing is a part of JFC, Java Foundation Classes. It is a collection of packages for creating full featured desktop applications. JFC consists of AWT, Swing, Accessibility, Java 2D, and Drag and Drop. Swing was released in 1997 with JDK 1.2. It is a mature toolkit.
 
-
 
-
The Java platform has Java2D library, which enables developers to create advanced 2D graphics and imaging.
 
-
 
-
There are basically two types of widget toolkits.
 
-
* Lightweight
 
-
* Heavyweight
 
-
A heavyweight toolkit uses OS's API to draw the widgets. For example Borland's VCL is a heavyweight toolkit. It depends on WIN32 API, the built in Windows application programming interface. On Unix systems, we have GTK+ toolkit, which is built on top of X11 library. Swing is a lightweight toolkit. It paints it's own widgets. It is in fact the only lightweight toolkit I know about.
 
-
 
-
== SWT библиотека==
 
-
There is also another GUI library for the Java programming language. It is called SWT. The Standard widget toolkit. The SWT library was initially developed by the IBM corporation. Now it is an open source project, supported by IBM. The SWT is an example of a heavyweight toolkit. It lets the underlying OS to create GUI. SWT uses the java native interface to do the job. The main advantages of the SWT are speed and native look and feel. The SWT is on the other hand more error prone. It is less powerful then Swing. It is also quite Windows centric library.
 
-
 
-
[[Категория:Java]]
 

Текущая версия на 11:25, 7 апреля 2009