tailieunhanh - Lecture 8: Introduction to the Swing Toolkit

Lecture 8: Introduction to the Swing Toolkit includes A brief introduction to Swing, Swing features; The Swing toolkit, a part of the Java platform provides a rich set of GUI (Graphical User Interface) components. | Lecture 8: Introduction to the Swing Toolkit Lê Hồng Phương phuonglh@ Department of Mathematics, Mechanics and Informatics Vietnam National University, Hanoi Content ● A brief introduction to Swing ● Swing features ● Demo 2 What is Swing? ● The Swing toolkit, a part of the Java platform provides a rich set of GUI (Graphical User Interface) components. – A collection of standard widgets – Many functionalities 3 Features provided by Swing ● GUI components: – Basic components: buttons, check boxes, menus. – Rich and complex components: texts, tables, trees. ● Java 2D API: figures, images, shadows. ● Pluggable Look-And-Feel supports: – ● Java LAF, platform LAF, custom LAF Data transfer: cut, copy, paste, drag and drop between applications 4 Features provided by Swing ● Internationalization – Applications that can interact with users world wide in their own languages and cultural conventions. ● Undo framework API: undo, redo supports ● Flexible deployment supports: – Applets which run in web browsers – Programs which launch from a browser using Java Web Start – Standard desktop .