![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e687. The Quintessential Accessible ObjectYou should try to subclass from JComponent or one of its descendants since that will automatically make your object accessible. If that is not possible, your object should implement Accessible.import javax.accessibility.*; public class BasicAccessible implements Accessible { public AccessibleContext getAccessibleContext() { return new AccessibleContext() { // Implement all the abstract methods in this abstract class. }; } }
e689. Setting a Description for Image Icons e690. Setting a Mnemonic for Buttons e691. Setting a Mnemonic for a Menu e692. Associating a Label with a Component e693. Setting a Keyboard Accelerator for a Menu Item © 2002 Addison-Wesley. |