lecture6-7 Java-GUI

lecture6-7 Java-GUI - Com S 319 Introduction to Java GUI...

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

View Full Document Right Arrow Icon
Com S 319 Introduction to Java GUI Yih-Cheng (Bruce) Lee byclee@iastate.edu
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 we cover Introduction GUI Layout Event Handling Often used components
Background image of page 2
 Introduction GUIs (Graphic User Interface) represent a  great example of software reuse. Since Java 1.0, the standard library of GUI  was AWT (Abstract Window Toolkit). On most platforms, AWT components are  implemented using the operating system’s  native GUI system. AWT components  depend on native code to handle their  functionality. People call this as  *heavyweight*.
Background image of page 3

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

View Full DocumentRight Arrow Icon
AWT  Pros Speed: use of native peers speeds component performance.  Applet Portability: most Web browsers support AWT classes so AWT  applets can run without the Java plugin.  Look and Feel: AWT components more closely reflect the look and feel  of the OS they run on Cons Portability: use of native peers creates platform specific limitations.  Some components may not function at all on some platforms.  Third Party Development: the majority of component makers, including  Borland and Sun, base new component development on Swing  components. There is a much smaller set of AWT components  available, thus placing the burden on the programmer to create his or  her own AWT-based components.  Features: AWT components do not support features like icons and tool- tips. 
Background image of page 4
Swing Java 1.2 introduced Swing, a new GUI library Swing has a platform-independent implementation. All of  them are implemented in Java language. Swing contains all the feature of AWT and provides a 
Background image of page 5

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

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

Page1 / 25

lecture6-7 Java-GUI - Com S 319 Introduction to Java GUI...

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

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