javax.swing
Ŭ·¡½º JRadioButton
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
javax.swing.JRadioButton
- ¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
- ImageObserver,
ItemSelectable,
MenuContainer,
Serializable,
Accessible,
SwingConstants
public class JRadioButton
- extends JToggleButton
- implements Accessible
¶óµð¿À ¹öưÀÇ ±¸ÇöÀÔ´Ï´Ù. ¶óµð¿À ¹öưÀº ¼±Åà ¶Ç´Â ¼±ÅÃ ÇØÁ¦°¡ °¡´ÉÇÑ Ç׸ñÀ¸·Î ±× »óŸ¦ Ç¥½ÃÇÕ´Ï´Ù. ButtonGroup
°´Ã¼¿Í Á¶ÇÕÇØ »ç¿ëÇϸé, 1ȸ¿¡ 1°³ÀÇ ¹öư¸¸À» ¼±ÅÃÇÒ ¼ö ÀÖ´Â ¹öưÀÇ ±×·ìÀ» ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. ButtonGroup °´Ã¼¸¦ ÀÛ¼ºÇØ, ±× add
¸Þ¼µå·Î JRadioButton °´Ã¼ (º¹¼ö)¸¦ ±×·ì¿¡ Â¥³Ö½À´Ï´Ù.
ÁÖ: ButtonGroup °´Ã¼´Â ³í¸®ÀûÀÎ ±×·ìÀ̸ç, ¹°¸®ÀûÀÎ ±×·ìÀÌ ¾Æ´Õ´Ï´Ù. ¹öưÀÇ ÆÐ³ÎÀ» ÀÛ¼ºÇÏ·Á¸é,
JPanel
ȤÀº ±×°Í°ú °°Àº ÄÁÅ×ÀÌ³Ê °´Ã¼¸¦ ÀÛ¼ºÇØ, °Å±â¿¡ Border
¸¦
Ãß°¡ÇØ, ÁÖÀ§¿¡ ÀÖ´Â ÄÄÆÛ³ÍÆ® (º¹¼ö)·ÎºÎÅÍ ´Ü¶ôÁöÀ» Çʿ䰡 ÀÖ½À´Ï´Ù.
ÀÚ¼¼ÇÑ °ÍÀº ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use Buttons, Check Boxes, and Radio Buttons¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ±× µÚ·Î´Â java.beans
ÆÐŰÁö·Î ¸ðµç JavaBeans™
Àå±â ±â¾ïÀÌ Áö¿ø
µË´Ï´Ù. XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
- °ü·Ã Ç׸ñ:
ButtonGroup
,
JCheckBox
Ŭ·¡½º javax.swing. AbstractButton ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
actionListener,
BORDER_PAINTED_CHANGED_PROPERTY,
changeEvent,
changeListener,
CONTENT_AREA_FILLED_CHANGED_PROPERTY,
DISABLED_ICON_CHANGED_PROPERTY,
DISABLED_SELECTED_ICON_CHANGED_PROPERTY,
FOCUS_PAINTED_CHANGED_PROPERTY,
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY,
HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY,
ICON_CHANGED_PROPERTY,
itemListener,
MARGIN_CHANGED_PROPERTY,
MNEMONIC_CHANGED_PROPERTY,
model,
MODEL_CHANGED_PROPERTY,
PRESSED_ICON_CHANGED_PROPERTY,
ROLLOVER_ENABLED_CHANGED_PROPERTY,
ROLLOVER_ICON_CHANGED_PROPERTY,
ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY,
SELECTED_ICON_CHANGED_PROPERTY,
TEXT_CHANGED_PROPERTY,
VERTICAL_ALIGNMENT_CHANGED_PROPERTY,
VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
ÀÎÅÍÆäÀ̽º javax.swing. SwingConstants ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
BOTTOM,
CENTER,
EAST,
HORIZONTAL,
LEADING,
LEFT,
NEXT,
NORTH,
NORTH_EAST,
NORTH_WEST,
PREVIOUS,
RIGHT,
SOUTH,
SOUTH_EAST,
SOUTH_WEST,
TOP,
TRAILING,
VERTICAL,
WEST |
»ý¼ºÀÚ °³¿ä |
JRadioButton ()
Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦µÇ°í ÀÖ´Â ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (Action a)
ÁöÁ¤µÈ Action ·ÎºÎÅÍ ÇÁ·ÎÆÛƼ¸¦ ¾ò´Â ¶óµð¿À ¹öưÀ» ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (Icon icon)
Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦µÇ°í ÀÖ´Â ¶óµð¿À ¹öưÀ» À̹ÌÁö¸¦ ÁöÁ¤ÇØ, ÅØ½ºÆ®¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (Icon icon,
boolean selected)
¶óµð¿À ¹öưÀ» ¼±Åà »óÅÂ¿Í À̹ÌÁö¸¦ ÁöÁ¤ÇØ, ÅØ½ºÆ®¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (String text)
¼±ÅÃ ÇØÁ¦ »óÅÂÀÇ ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (String text,
boolean selected)
¶óµð¿À ¹öưÀ» ¼±Åà »óÅÂ¿Í ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (String text,
Icon icon)
Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦ÀÇ ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¿Í À̹ÌÁö¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù. |
JRadioButton (String text,
Icon icon,
boolean selected)
¶óµð¿À ¹öưÀ» ÅØ½ºÆ®, À̹ÌÁö ¹× ¼±Åà »óŸ¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing. AbstractButton À¸·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
addActionListener,
addChangeListener,
addImpl,
addItemListener,
checkHorizontalKey,
checkVerticalKey,
createActionListener,
createChangeListener,
createItemListener,
doClick,
doClick,
fireActionPerformed,
fireItemStateChanged,
fireStateChanged,
getAction,
getActionCommand,
getActionListeners,
getChangeListeners,
getDisabledIcon,
getDisabledSelectedIcon,
getDisplayedMnemonicIndex,
getHorizontalAlignment,
getHorizontalTextPosition,
getIcon,
getIconTextGap,
getItemListeners,
getLabel,
getMargin,
getMnemonic,
getModel,
getMultiClickThreshhold,
getPressedIcon,
getRolloverIcon,
getRolloverSelectedIcon,
getSelectedIcon,
getSelectedObjects,
getText,
getUI,
getVerticalAlignment,
getVerticalTextPosition,
imageUpdate,
init,
isBorderPainted,
isContentAreaFilled,
isFocusPainted,
isRolloverEnabled,
isSelected,
paintBorder,
removeActionListener,
removeChangeListener,
removeItemListener,
setAction,
setActionCommand,
setBorderPainted,
setContentAreaFilled,
setDisabledIcon,
setDisabledSelectedIcon,
setDisplayedMnemonicIndex,
setEnabled,
setFocusPainted,
setHorizontalAlignment,
setHorizontalTextPosition,
setIcon,
setIconTextGap,
setLabel,
setLayout,
setMargin,
setMnemonic,
setMnemonic,
setModel,
setMultiClickThreshhold,
setPressedIcon,
setRolloverEnabled,
setRolloverIcon,
setRolloverSelectedIcon,
setSelected,
setSelectedIcon,
setText,
setUI,
setVerticalAlignment,
setVerticalTextPosition |
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
addAncestorListener,
addNotify,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
disable,
enable,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getActionMap,
getAlignmentX,
getAlignmentY,
getAncestorListeners,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getComponentPopupMenu,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getDefaultLocale,
getFontMetrics,
getGraphics,
getHeight,
getInheritsPopupMenu,
getInputMap,
getInputMap,
getInputVerifier,
getInsets,
getInsets,
getListeners,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPopupLocation,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getTransferHandler,
getVerifyInputWhenFocusTarget,
getVetoableChangeListeners,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
isDoubleBuffered,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
print,
printAll,
printBorder,
printChildren,
printComponent,
processComponentKeyEvent,
processKeyBinding,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
requestFocus,
requestFocusInWindow,
requestFocusInWindow,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setActionMap,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setComponentPopupMenu,
setDebugGraphicsOptions,
setDefaultLocale,
setDoubleBuffered,
setFocusTraversalKeys,
setFont,
setForeground,
setInheritsPopupMenu,
setInputMap,
setInputVerifier,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setTransferHandler,
setUI,
setVerifyInputWhenFocusTarget,
setVisible,
unregisterKeyboardAction,
update |
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
add,
add,
add,
add,
add,
addContainerListener,
addPropertyChangeListener,
addPropertyChangeListener,
applyComponentOrientation,
areFocusTraversalKeysSet,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getComponentZOrder,
getContainerListeners,
getFocusTraversalKeys,
getFocusTraversalPolicy,
getLayout,
getMousePosition,
insets,
invalidate,
isAncestorOf,
isFocusCycleRoot,
isFocusCycleRoot,
isFocusTraversalPolicyProvider,
isFocusTraversalPolicySet,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setComponentZOrder,
setFocusCycleRoot,
setFocusTraversalPolicy,
setFocusTraversalPolicyProvider,
transferFocusBackward,
transferFocusDownCycle,
validate,
validateTree |
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addMouseWheelListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
createVolatileImage,
createVolatileImage,
disableEvents,
dispatchEvent,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
getBackground,
getBounds,
getColorModel,
getComponentListeners,
getComponentOrientation,
getCursor,
getDropTarget,
getFocusCycleRootAncestor,
getFocusListeners,
getFocusTraversalKeysEnabled,
getFont,
getForeground,
getGraphicsConfiguration,
getHierarchyBoundsListeners,
getHierarchyListeners,
getIgnoreRepaint,
getInputContext,
getInputMethodListeners,
getInputMethodRequests,
getKeyListeners,
getLocale,
getLocation,
getLocationOnScreen,
getMouseListeners,
getMouseMotionListeners,
getMousePosition,
getMouseWheelListeners,
getName,
getParent,
getPeer,
getPropertyChangeListeners,
getPropertyChangeListeners,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hasFocus,
hide,
inside,
isBackgroundSet,
isCursorSet,
isDisplayable,
isEnabled,
isFocusable,
isFocusOwner,
isFocusTraversable,
isFontSet,
isForegroundSet,
isLightweight,
isMaximumSizeSet,
isMinimumSizeSet,
isPreferredSizeSet,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
processComponentEvent,
processFocusEvent,
processHierarchyBoundsEvent,
processHierarchyEvent,
processInputMethodEvent,
processMouseWheelEvent,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeMouseWheelListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setFocusable,
setFocusTraversalKeysEnabled,
setIgnoreRepaint,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus,
transferFocusUpCycle |
JRadioButton
public JRadioButton()
- Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦µÇ°í ÀÖ´Â ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
JRadioButton
public JRadioButton(Icon icon)
- Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦µÇ°í ÀÖ´Â ¶óµð¿À ¹öưÀ» À̹ÌÁö¸¦ ÁöÁ¤ÇØ, ÅØ½ºÆ®¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
icon
- ¹öưÀ¸·Î Ç¥½ÃÇÏ´Â À̹ÌÁö
JRadioButton
public JRadioButton(Action a)
- ÁöÁ¤µÈ Action ·ÎºÎÅÍ ÇÁ·ÎÆÛƼ¸¦ ¾ò´Â ¶óµð¿À ¹öưÀ» ÀÛ¼ºÇÕ´Ï´Ù.
- µµÀÔµÈ ¹öÀü
:
- 1.3
JRadioButton
public JRadioButton(Icon icon,
boolean selected)
- ¶óµð¿À ¹öưÀ» ¼±Åà »óÅÂ¿Í À̹ÌÁö¸¦ ÁöÁ¤ÇØ, ÅØ½ºÆ®¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
icon
- ¹öưÀ¸·Î Ç¥½ÃÇÏ´Â À̹ÌÁöselected
- trueÀÎ °æ¿ì´Â ¹öưÀÌ Ãʱ⠻óÅ·Π¼±ÅÃµÇ¾î ±×·¸Áö ¾ÊÀº °æ¿ì´Â ¹öưÀÌ Ãʱ⠻óÅ·Π¼±ÅÃ ÇØÁ¦µÈ´Ù
JRadioButton
public JRadioButton(String text)
- ¼±ÅÃ ÇØÁ¦ »óÅÂÀÇ ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
text
- ¶óµð¿À ¹öư¿¡ Ç¥½ÃÇϴ ij¸¯ÅÍ ¶óÀÎ
JRadioButton
public JRadioButton(String text,
boolean selected)
- ¶óµð¿À ¹öưÀ» ¼±Åà »óÅÂ¿Í ÅØ½ºÆ®¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
text
- ¶óµð¿À ¹öư¿¡ Ç¥½ÃÇϴ ij¸¯ÅÍ ¶óÀÎselected
- trueÀÎ °æ¿ì´Â ¹öưÀÌ Ãʱ⠻óÅ·Π¼±ÅÃµÇ¾î ±×·¸Áö ¾ÊÀº °æ¿ì´Â ¹öưÀÌ Ãʱ⠻óÅ·Π¼±ÅÃ ÇØÁ¦µÈ´Ù
JRadioButton
public JRadioButton(String text,
Icon icon)
- Ãʱ⠻óÅ¿¡¼´Â ¼±ÅÃ ÇØÁ¦ÀÇ ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®¿Í À̹ÌÁö¸¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
text
- ¶óµð¿À ¹öư¿¡ Ç¥½ÃÇϴ ij¸¯ÅÍ ¶óÀÎicon
- ¹öưÀ¸·Î Ç¥½ÃÇÏ´Â À̹ÌÁö
JRadioButton
public JRadioButton(String text,
Icon icon,
boolean selected)
- ¶óµð¿À ¹öưÀ» ÅØ½ºÆ®, À̹ÌÁö ¹× ¼±Åà »óŸ¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
text
- ¶óµð¿À ¹öư¿¡ Ç¥½ÃÇϴ ij¸¯ÅÍ ¶óÀÎicon
- ¹öưÀ¸·Î Ç¥½ÃÇÏ´Â À̹ÌÁö
updateUI
public void updateUI()
- ÇöÀçÀÇ Look & Feel ·ÎºÎÅÍÀÇ °ª¿¡ UI ÇÁ·ÎÆÛƼ¸¦ ¸®¼Â ÇÕ´Ï´Ù.
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
JToggleButton
³»ÀÇ updateUI
- °ü·Ã Ç׸ñ:
JComponent.updateUI()
getUIClassID
public String getUIClassID()
- ÀÌ ÄÄÆÛ³ÍÆ®¸¦ ·»´õ¸µ ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
JToggleButton
³»ÀÇ getUIClassID
- ¹Ýȯ°ª:
- ij¸¯ÅÍ ¶óÀÎ ¡¸RadioButtonUI¡¹
- °ü·Ã Ç׸ñ:
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
configurePropertiesFromAction
protected void configurePropertiesFromAction(Action a)
- Action ÀνºÅϽºÀÇ °ª¿¡ µû¶ó
ActionEvent
¼Ò½ºÀÇ ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÏ´Â ÆÑÅ丮 ¸Þ¼µåÀÔ´Ï´Ù. ¼³Á¤µÇ´Â ÇÁ·ÎÆÛƼ´Â ¼ºê Ŭ·¡½º¿¡ ÀÇÇØ ´Ù¸¨´Ï´Ù. µðÆúÆ®¿¡¼´Â ¼³Á¤µÇ´Â ÇÁ·ÎÆÛƼ´Â Text
, Mnemonic
, Enabled
, ActionCommand
¹× ToolTipText
ÀÔ´Ï´Ù.
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
AbstractButton
³»ÀÇ configurePropertiesFromAction
- ÆÄ¶ó¹ÌÅÍ:
a
- ÇÁ·ÎÆÛƼÀÇ Ãëµæ¿ø Action, ¶Ç´Â null- µµÀÔµÈ ¹öÀü
:
- 1.3
- °ü·Ã Ç׸ñ:
Action
,
AbstractButton.setAction(javax.swing.Action)
createActionPropertyChangeListener
protected PropertyChangeListener createActionPropertyChangeListener(Action a)
- ActionEvent ¼Ò½º¸¦ Action ÀνºÅϽºÀÇ ÇÁ·ÎÆÛƼÀÇ º¯°æÀ¸·Î¼ °»½ÅÇϴµ¥ »ç¿ëÇÏ´Â PropertyChangeListener¸¦ »ý¼ºÇÏ´Â ÆÑÅ丮 ¸Þ¼µåÀÔ´Ï´Ù. ÃֽŠ»óÅ·Πº¸°ü À¯ÁöÇÒ Çʿ䰡 ÀÖ´Â ÇÁ·ÎÆÛƼ¼¼Æ®°¡ µðÆúÆ® ÇÁ·ÎÆÛƼ (Text, Icon, Enabled, ToolTipText)¿Í ´Ù¸¥ °æ¿ì´Â µ¶ÀÚÀûÀÎ PropertyChangeListener¸¦ Á¦°øÇϱâ À§Çؼ ¼ºê Ŭ·¡½º°¡ ÀÌ ¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù.
PropertyChangeListeners´Â ActionEvent ¼Ò½º¿¡ÀÇ °ÇÑ ÂüÁ¶¸¦ º¸°ü À¯ÁöÇÏÁö ¾Ê°Ô ÇÕ´Ï´Ù. À̰ÍÀº ActionEvent ¼Ò½º ¹× ±× Æ÷ÇÔ °ü°èÀÇ °èÃþ¿¡ ÀÖ´Â ¸ðµç ÄÄÆÛ³ÍÆ®ÀÇ °¡ºñÁö Ä÷º¼ÇÀ» ´ÊÃâ °¡´É¼ºÀÌ Àֱ⠶§¹®ÀÔ´Ï´Ù.
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
AbstractButton
³»ÀÇ createActionPropertyChangeListener
- ÆÄ¶ó¹ÌÅÍ:
a
- ¹öưÀÇ »õ·Î¿î ¾×¼Ç- µµÀÔµÈ ¹öÀü
:
- 1.3
- °ü·Ã Ç׸ñ:
Action
,
AbstractButton.setAction(javax.swing.Action)
paramString
protected String paramString()
- ÀÌ JRadioButton
ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â µð¹ö±× Àü¿ëÀ̸ç, ¸®ÅϵÈ
ij¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼ ´Ù¸¨´Ï´Ù. ¸®ÅϵÈ
ij¸¯ÅÍ ¶óÀÎÀº ºñ¾îÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸,
null
·Î´Â µÇÁö ¾Ê½À´Ï´Ù.
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
JToggleButton
³»ÀÇ paramString
- ¹Ýȯ°ª:
- ÀÌ JRadioButton
ij¸¯ÅÍ ¶óÀΠǥÇö
getAccessibleContext
public AccessibleContext getAccessibleContext()
- ÀÌ JRaioButton¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù. JRadioButtonÀÎ °æ¿ì, AccessibleContext´Â AccessibleJRadioButton
Çü½ÄÀ» ÃëÇÕ´Ï´Ù. Çʿ信 µû¶ó¼ »õ·Î¿îÀÇ AccessibleJRadioButton ÀνºÅϽº°¡ ÀÛ¼ºµË´Ï´Ù.
- Á¤ÀÇ:
- ÀÎÅÍÆäÀ̽º
Accessible
³»ÀÇ getAccessibleContext
- ¿À¹ö¶óÀ̵å(override):
- Ŭ·¡½º
JToggleButton
³»ÀÇ getAccessibleContext
- ¹Ýȯ°ª:
- ÀÌ JRadioButton
AccessibleContext ·Î¼ ±â´ÉÇÏ´Â AccessibleJRadioButton
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ
ÂüÁ¶ÇϽʽÿÀ.