软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.plaf.synth |
它是一个可更换皮肤的外观和感觉的绘画是授。
|
Modifier and Type | Class and Description |
---|---|
class |
JButton
一个“推”按钮的实现。
|
class |
JCheckBox
一个复选框的实现,可以选择或取消选择一项,并显示其状态的用户。
|
class |
JCheckBoxMenuItem
一个菜单项,可以选择或取消选择。
|
class |
JMenu
一个菜单的实现,包含
JMenuItem s时显示用户选择的
JMenuBar 项弹出窗口。
|
class |
JMenuItem
菜单中的一个项目的实现。
|
class |
JRadioButton
一个单选按钮的实现,可以选择或取消选择一项,并显示其状态的用户。
|
class |
JRadioButtonMenuItem
一个广播按钮菜单项的实现。
|
class |
JToggleButton
一个两个国家的按钮的实现。
|
Modifier and Type | Field and Description |
---|---|
protected Vector<AbstractButton> |
ButtonGroup.buttons |
Modifier and Type | Method and Description |
---|---|
Enumeration<AbstractButton> |
ButtonGroup.getElements()
返回参与此组的所有按钮。
|
Modifier and Type | Method and Description |
---|---|
void |
ButtonGroup.add(AbstractButton b)
将按钮添加到组。
|
void |
ButtonGroup.remove(AbstractButton b)
移除组中的按钮。
|
Modifier and Type | Class and Description |
---|---|
class |
BasicArrowButton
JButton对象,得出规模的一个基本方向的箭头。
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicButtonListener.checkOpacity(AbstractButton b) |
protected BasicButtonListener |
BasicButtonUI.createButtonListener(AbstractButton b) |
int |
BasicButtonUI.getDefaultTextIconGap(AbstractButton b) |
protected Border |
BasicToolBarUI.getNonRolloverBorder(AbstractButton b)
返回按钮的非过渡边框。
|
static Dimension |
BasicGraphicsUtils.getPreferredButtonSize(AbstractButton b, int textIconGap) |
protected Border |
BasicToolBarUI.getRolloverBorder(AbstractButton b)
返回按钮的翻转边框。
|
protected void |
BasicButtonUI.installDefaults(AbstractButton b) |
protected void |
BasicRadioButtonUI.installDefaults(AbstractButton b) |
protected void |
BasicButtonUI.installKeyboardActions(AbstractButton b) |
protected void |
BasicButtonUI.installListeners(AbstractButton b) |
protected void |
BasicButtonUI.paintButtonPressed(Graphics g, AbstractButton b) |
protected void |
BasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) |
protected void |
BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) |
protected void |
BasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
呈现当前按钮的文本的方法。
|
protected void |
BasicButtonUI.uninstallDefaults(AbstractButton b) |
protected void |
BasicRadioButtonUI.uninstallDefaults(AbstractButton b) |
protected void |
BasicButtonUI.uninstallKeyboardActions(AbstractButton b) |
protected void |
BasicButtonUI.uninstallListeners(AbstractButton b) |
Constructor and Description |
---|
BasicButtonListener(AbstractButton b) |
Modifier and Type | Class and Description |
---|---|
class |
MetalComboBoxButton
JButton类来帮助metalcomboboxui
|
class |
MetalScrollButton
金属滚动条箭头JButton对象。
|
Modifier and Type | Method and Description |
---|---|
protected BasicButtonListener |
MetalButtonUI.createButtonListener(AbstractButton b) |
void |
MetalCheckBoxUI.installDefaults(AbstractButton b) |
void |
MetalButtonUI.installDefaults(AbstractButton b) |
void |
MetalToggleButtonUI.installDefaults(AbstractButton b) |
void |
MetalRadioButtonUI.installDefaults(AbstractButton b) |
protected void |
MetalButtonUI.paintButtonPressed(Graphics g, AbstractButton b) |
protected void |
MetalToggleButtonUI.paintButtonPressed(Graphics g, AbstractButton b) |
protected void |
MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) |
protected void |
MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) |
protected void |
MetalToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
颜料在空间
iconRect
b 相应的图标按钮。
|
protected void |
MetalCheckBoxUI.uninstallDefaults(AbstractButton b) |
void |
MetalButtonUI.uninstallDefaults(AbstractButton b) |
protected void |
MetalToggleButtonUI.uninstallDefaults(AbstractButton b) |
protected void |
MetalRadioButtonUI.uninstallDefaults(AbstractButton b) |
Modifier and Type | Method and Description |
---|---|
protected Icon |
SynthButtonUI.getDefaultIcon(AbstractButton b)
返回默认图标。
|
protected Icon |
SynthButtonUI.getIcon(AbstractButton b)
返回用于画按钮的图标。
|
protected Icon |
SynthButtonUI.getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。
|
protected Icon |
SynthRadioButtonUI.getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。
|
protected void |
SynthButtonUI.installDefaults(AbstractButton b) |
protected void |
SynthButtonUI.installListeners(AbstractButton b) |
protected void |
SynthButtonUI.uninstallDefaults(AbstractButton b) |
protected void |
SynthButtonUI.uninstallListeners(AbstractButton b) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.