类的用途
javax.swing.AbstractButton
使用 AbstractButton 的包
包
描述
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供根据基本外观构建的用户界面对象。
提供根据 Java 外观(曾经代号为 Metal )构建的用户界面对象,这是默认外观。
Synth 是一种可换肤的外观和感觉,其中所有绘画都是委托的。
-
AbstractButton 在 javax.swing 中的用法
javax.swing 中 AbstractButton 的子类修饰符和类型类描述class“按下”按钮的实现。class复选框的实现——可以选择或取消选择的项目,并向用户显示其状态。class可以选择或取消选择的菜单项。class菜单的实现——一个包含JMenuItem的弹出窗口,当用户在JMenuBar上选择一个项目时显示。class菜单中项目的实现。class单选按钮的实现——可以选择或取消选择的项目,并向用户显示其状态。class单选按钮菜单项的实现。class两种状态按钮的实现。javax.swing 中的字段具有 AbstractButton 类型参数返回类型中包含 AbstractButton 类型参数的 javax.swing 中的方法javax.swing 中的方法,参数类型为 AbstractButton修饰符和类型方法描述voidButtonGroup.add(AbstractButton b) 将按钮添加到组中。voidButtonGroup.remove(AbstractButton b) 从组中删除按钮。 -
AbstractButton 在 javax.swing.plaf.basic 中的用法
javax.swing.plaf.basic 中的方法,参数类型为 AbstractButton修饰符和类型方法描述protected voidBasicButtonListener.checkOpacity(AbstractButton b) 检查AbstractButton的不透明度。protected BasicButtonListenerBasicButtonUI.createButtonListener(AbstractButton b) 返回BasicButtonListener的新实例。intBasicButtonUI.getDefaultTextIconGap(AbstractButton b) 返回文本和图标之间的默认间隙。protected BorderBasicToolBarUI.getNonRolloverBorder(AbstractButton b) 返回按钮的非翻转边框。static DimensionBasicGraphicsUtils.getPreferredButtonSize(AbstractButton b, int textIconGap) 返回按钮的首选大小。protected BorderBasicToolBarUI.getRolloverBorder(AbstractButton b) 返回按钮的翻转边框。protected voidBasicButtonUI.installDefaults(AbstractButton b) 安装默认属性。protected voidBasicButtonUI.installKeyboardActions(AbstractButton b) 注册键盘操作。protected voidBasicButtonUI.installListeners(AbstractButton b) 注册听众。protected voidBasicButtonUI.paintButtonPressed(Graphics g, AbstractButton b) 绘制按下的按钮。protected voidBasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) 绘制一个聚焦按钮。protected voidBasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) 在指定位置绘制图标。protected voidBasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) 呈现当前按钮文本的方法。protected voidBasicButtonUI.uninstallDefaults(AbstractButton b) 卸载默认属性。protected voidBasicButtonUI.uninstallKeyboardActions(AbstractButton b) 注销键盘操作。protected voidBasicButtonUI.uninstallListeners(AbstractButton b) 注销听众。javax.swing.plaf.basic 中的构造函数,参数类型为 AbstractButton -
AbstractButton 在 javax.swing.plaf.metal 中的用法
修饰符和类型类描述class帮助 MetalComboBoxUI 的 JButton 子类class金属滚动条箭头的 JButton 对象。javax.swing.plaf.metal 中的方法,参数类型为 AbstractButton修饰符和类型方法描述voidMetalButtonUI.installDefaults(AbstractButton b) voidMetalRadioButtonUI.installDefaults(AbstractButton b) voidMetalToggleButtonUI.installDefaults(AbstractButton b) protected voidMetalToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) 在空间iconRect中绘制按钮b的相应图标。voidMetalButtonUI.uninstallDefaults(AbstractButton b) -
AbstractButton 在 javax.swing.plaf.synth 中的用法
javax.swing.plaf.synth 中的方法,参数类型为 AbstractButton修饰符和类型方法描述protected IconSynthButtonUI.getDefaultIcon(AbstractButton b) 返回默认图标。protected IconSynthButtonUI.getIcon(AbstractButton b) 返回用于绘制按钮的图标。protected IconSynthButtonUI.getSizingIcon(AbstractButton b) 返回用于计算首选/最小/最大大小的图标。protected IconSynthRadioButtonUI.getSizingIcon(AbstractButton b) 返回用于计算首选/最小/最大大小的图标。