Java 7
Java 7
Joon Ho Cho
What is Java Swing?
• Part of the Java Foundation Classes (JFC)
• Provides a rich set of GUI components
• Used to create a Java program with a
graphical user interface (GUI)
• table controls, list controls, tree controls,
buttons, and labels, and so on…
What features are available?
• GUI components like button, checkbox, and
so on…
• Java 2D API: images, figures, animation
• Pluggable look and feel: use samples or
create your own
• Data Transfer: cut, copy, paste, drag & drop
• Internationalization: supports different input
language, right to left reading
• Accessibility API: for people with disabilities
• Undo Framework API: supports unlimited
numbers of actions to undo and redo
• Flexible Deployment: run within a browser as
an applet or Java Web Start
How does HelloWorld look like?
• import javax.swing.*;