GRAPHICS PROGRAMMING1.IntroductionWe can reuse the graphics classes provided in JDK for constructing your own Graphical User Interface (GUI) applications. There are two sets of Java APIs for graphics programming: AWT (AbstractWindowingToolkit) and Swing.1. AWT API was introduced in JDK 1.0. Most of the AWT components have become obsolete and should be replaced by newer Swing components.2. Swing API, a much more comprehensive set of graphics libraries that enhances the AWT, was introduced as part of Java Foundation Classes (JFC) after the release of JDK 1.1. JFC consists of Swing, Java2D, Accessibility, Internationalization, and Pluggable Look-and-Feel Support APIs. JFC was an add-on to JDK 1.1 but has been integrated into core Java since JDK 1.2.2.Programming GUI with AWTJava Graphics APIs - AWT and Swing - provide a huge set of reusable GUI components, such as button, text field, label, choice, panel and frame for building GUI applications. We can simply reuse these classes.2.1AWT PackagesAWT consists of 12 packages (Swing is even bigger, with 18 packages as of JDK 1.7!). Fortunately, only 2 packages -java.awtandjava.awt.event- are commonly-used.1. Thejava.awtpackage contains thecoreAWT graphics classes:GUI Component classes (such asButton,TextField, andLabel),GUI Container classes (such asFrame,Panel,DialogandScrollPane),Layout managers (such asFlowLayout,BorderLayoutandGridLayout),Custom graphics clas ...
To Order an Original Plagiarism Free Paper on the Same Topic Click Here
Other samples, services and questions:
When you use PaperHelp, you save one valuable — TIME
You can spend it for more important things than paper writing.