JavaTM 2 Platform
Standard Ed. 5.0

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

Áßø(Nested) Ŭ·¡½º °³¿ä
protected  class JRadioButton.AccessibleJRadioButton
          ÀÌ Å¬·¡½º´Â JRadioButton Ŭ·¡½º¿ëÀÇ »ç¿ëÀÚ º¸Á¶ ±â´ÉÀÇ Áö¿ø¸¦ ±¸ÇöÇÏ°í ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JToggleButton ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel
 
Ŭ·¡½º javax.swing. AbstractButton ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
ÇÊµå °³¿ä
 
Ŭ·¡½º 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. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
ÀÎÅÍÆäÀ̽º 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
 
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
»ý¼ºÀÚ °³¿ä
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)
          ¶óµð¿À ¹öÆ°À» ÅؽºÆ®, À̹ÌÁö ¹× ¼±Åà »óŸ¦ ÁöÁ¤ÇØ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
protected  void configurePropertiesFromAction (Action  a)
          Action ÀνºÅϽºÀÇ °ª¿¡ µû¶ó ActionEvent ¼Ò½ºÀÇ ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÏ´Â ÆÑÅ丮 ¸Þ¼­µåÀÔ´Ï´Ù.
protected  PropertyChangeListener createActionPropertyChangeListener (Action  a)
          ActionEvent ¼Ò½º¸¦ Action ÀνºÅϽºÀÇ ÇÁ·ÎÆÛƼÀÇ º¯°æÀ¸·Î¼­ °»½ÅÇϴµ¥ »ç¿ëÇÏ´Â PropertyChangeListener¸¦ »ý¼ºÇÏ´Â ÆÑÅ丮 ¸Þ¼­µåÀÔ´Ï´Ù.
 AccessibleContext getAccessibleContext ()
          ÀÌ JRaioButton¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getUIClassID ()
          ÀÌ ÄÄÆÛ³ÍÆ®¸¦ ·»´õ¸µ ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
protected  String paramString ()
          ÀÌ JRadioButton ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.
 void updateUI ()
          ÇöÀçÀÇ Look & Feel ·ÎºÎÅÍÀÇ °ª¿¡ UI ÇÁ·ÎÆÛƼ¸¦ ¸®¼Â ÇÕ´Ï´Ù.
 
Ŭ·¡½º 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
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

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¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â µð¹ö±× Àü¿ëÀ̸ç, ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀº ºñ¾îÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸, null·Î´Â µÇÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JToggleButton ³»ÀÇ paramString
¹Ýȯ°ª:
ÀÌ JRadioButton ij¸¯ÅÍ ¶óÀΠǥÇö

getAccessibleContext

public AccessibleContext  getAccessibleContext()
ÀÌ JRaioButton¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù. JRadioButtonÀÎ °æ¿ì, AccessibleContext´Â AccessibleJRadioButton Çü½ÄÀ» ÃëÇÕ´Ï´Ù. ÇÊ¿ä¿¡ µû¶ó¼­ »õ·Î¿îÀÇ AccessibleJRadioButton ÀνºÅϽº°¡ ÀÛ¼ºµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Accessible ³»ÀÇ getAccessibleContext
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JToggleButton ³»ÀÇ getAccessibleContext
¹Ýȯ°ª:
ÀÌ JRadioButton AccessibleContext ·Î¼­ ±â´ÉÇÏ´Â AccessibleJRadioButton

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.