这里面包含了一百多个JAVA源文件

源代码在线查看: e688. setting an accessible name for an image button.txt

软件大小: 551 K
上传用户: maple_78
关键词: JAVA
下载地址: 免注册下载 普通下载 VIP

相关代码

				You should also set the accessible name for components that only show an image. The tool tip text, if set, serves as the accessible name for a component. However, if the tool tip text is being used for something else, set the component's accessible name. 
				    JButton button = new JButton(new ImageIcon("image.gif"));
				    button.setToolTipText("Button Name");
				    
				    // If tool tip is being used for something else, set the accessible name.
				    button.getAccessibleContext().setAccessibleName("Button Name");
				
							

相关资源