这个压缩包里的都是超级经典的java例子
源代码在线查看: basicaccessible.htm
The Quintessential Accessible Object (Java Developers Almanac Example)
The Java Developers Almanac 1.4
Order this book from Amazon.
google_ad_client = "pub-6001183370374757";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel = "4777242811";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "6666CC";
google_color_url = "6666CC";
google_color_text = "000000";
//-->
Home
>
List of Packages
>
javax.accessibility
[7 examples]
e687. The Quintessential Accessible Object
You 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.
};
}
}
Related Examples
e688.
Setting an Accessible Name for an Image Button
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.