lecture18

lecture18 - PIC 20A Lecture 18 Swing GUI Components What is...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
PIC 20A Lecture 18: Swing GUI Components
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What is a Graphical User Interface? •A user interface is what clients of your program can see, access, and use • A GUI gives a program a distinctive " look and feel ". G U I i s event driven (User interaction determines flow of control.) • A GUI is built from GUI components or widgets .
Background image of page 2
What is a “look and feel”? • the “look” – the appearance of the program’s interface • colors, fonts, component layout • the “feel” – how the user interacts with the program – behavior of the GUI components • can be customized using Swing's pluggable look-and-feel (PLAF)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Look and Feel Examples • CrossPlatformLookAndFeel – aka "Metal" which is Java's default L&F • SystemLookAndFeel – native to the system it is running on – JRE determines it at run time by asking the system • Synth – basis for creating your own look and feel with an XML file • Multiplexing – a way to have a number of different look and feels at the same time Some examples of SystemLookAndFeel Motif (Solaris, Linux) Microsoft Windows XP Microsoft Windows Vista •M a c i n t o s h
Background image of page 4
What is a GUI Component? • an object which the user sees or interacts with via the mouse or the keyboard • aka control or widget ( window gadget )
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Swing GUI Components • written, manipulated, and displayed completely in Java •a r e pure Java components (aka lightweight components)
Background image of page 6
Lightweight vs. Heavyweight lightweight components
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/12/2010 for the course PIC PIC 20A taught by Professor Keithouellette during the Spring '09 term at UCLA.

Page1 / 23

lecture18 - PIC 20A Lecture 18 Swing GUI Components What is...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online