Download presentation
Presentation is loading. Please wait.
Published bySamantha Quinlan Modified over 11 years ago
1
G5BUID - Java Swing - 2005 1 What is Swing? A part of The Java Foundation Classes Swing Look and feel Accessibility Java 2D (Java 2 onwards) Drag and Drop etc Can be used to build Standalone Apps as well as Servlets and Applets
2
G5BUID - Java Swing - 2005 2 On-line reading and reference The Swing connection - http://java.sun.com/products/jfc/tsc/ The JFC Swing trail - http://java.sun.com/docs/books/tutorial/uiswing/ Fundamentals of JFC/Swing I & II - http://developer.java.sun.com/developer/onlineTraining/
3
G5BUID - Java Swing - 2005 3 Differences between Swing and AWT (2) Buttons and labels can display images Behaviour and appearance of components Component shape Borders Assistive technologies Look and feel of the programs GUI Windows – (but only on Windows) LINUX etc
4
G5BUID - Java Swing - 2005 4 A typical Swing program Consists of multiple parts Containers Components Events Graphics
5
G5BUID - Java Swing - 2005 5 A simple Swing program - Containers Containers
6
G5BUID - Java Swing - 2005 6 Remember this about Containers: The structure of containers is your design decision and should always be thought through in advance particularly for managing components nesting containers Failure to do so usually either results in a messy interface, messy code or both.
7
G5BUID - Java Swing - 2005 7 A simple Swing program - Components Components
8
G5BUID - Java Swing - 2005 8 A simple Swing program - Events Events
9
G5BUID - Java Swing - 2005 9 Remember this about events: Events as seen by GUIs do not happen all that often in an application Consider what is happening between events as well as during them
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.