However, when writing a GUI-enabled application, developers always face a dilemma: Should the same GUI be provided across all platforms, or should the GUI be consistent with the look and feel of its underlying platform? With the first option, the look and feel of a button, scroll bar, text box or checkbox are the same, regardless of platform. For example, a word processor application developed in Java looks and feels the same when running on Windows or Linux operating systems.
With the second option, the buttons, scroll bars and text boxes, etc. In this case, the same word processor application looks and feels like a Windows application when running on Windows, but when running on Linux, it looks and feels like a Linux application. A key JFC advantage is that its components are pluggable and require fewer lines of code.
Additionally, JFC retains Java qualities. An application that runs seamlessly on one OS runs seamlessly on another OS. By: Justin Stoltzfus Contributor, Reviewer. Swing Features and Concepts gives you the information you need to be able to use Swing components effectively. For example, it tells you how Swing programs display their GUIs, how they handle events such as mouse clicks, and how they can use features such as borders to help with layout. It ends with a discussion of how the features and concepts are used by a real program.
Using Swing Components tells you how to use each of the Swing components -- buttons, tables, text components, and all the rest. Using Other Swing Features tells you how to use actions, borders, icons, and timers. It also helps you to create multithreaded programs. Laying Out Components Within a Container tells you how to choose a layout manager, how to use each of the layout manager classes the Java TM platform provides, how to use absolute positioning instead of a layout manager, and how to create your own layout manager.
Information on the event dispatch thread and the SwingWorker class are included. Using Other Swing Features tells you how to use actions, timers, and the system tray; how to integrate with the desktop class, how to support assistive technologies, how to print tables and text, how to create a splash screen, and how to use modality in dialogs.
Laying Out Components Within a Container tells you how to choose a layout manager, how to use each of the layout manager classes the Java platform provides, how to use absolute positioning instead of a layout manager, and how to create your own layout manager. Modifying the Look and Feel tells you how to specify the look and feel of Swing components. Drag and Drop and Data Transfer tells you what you need to know to implement data transfer in your application.
Writing Event Listeners tells you how to handle events in your programs. Performing Custom Painting gives you information on painting your own Swing components.
0コメント