Problem 1
State which of the following are true and which are false. If false, explain why. a) The Abstract Windowing Toolkit provides a richer set of components than the Swing component set. b) Swing provides a pluggable look and feel that enables components to change their ap- pearance. c) JEditorPane is capable of rendering only plain text, not richly styled text. d) Toolbars—implemented by class JToolBar—enable developers to provide users with quick access to commonly used user-interface elements, such as cut, copy and paste. e) Interface Action provides set and get methods for each Action property. f) JSplitPanes can contain any number of child components.
Problem 4
Create an image-viewing application that supports drag-and-drop loading of images. When the user drags and drops a image file onto the application window, load that image in an Image Icon and display the ImageIcon in a JPane1.
Problem 6
Making an application accessible requires that the application provides keyboard navigation for all the application's functionality. Unplug your mouse from your computer and try using various programs, such as word processors, Web browsers and the Java programs in this chapter. What about these applications makes it difficult to navigate without a mouse? Is there functionality that you cannot access using a keyboard?