JavaTM 2 Platform
Standard Ed. 5.0

javax.swing
Ŭ·¡½º Box

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.Component 
      »óÀ§¸¦ È®Àå java.awt.Container 
          »óÀ§¸¦ È®Àå javax.swing.JComponent 
              »óÀ§¸¦ È®Àå javax.swing.Box
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
ImageObserver, MenuContainer, Serializable, Accessible

public class Box
extends JComponent
implements Accessible

BoxLayout °´Ã¼¸¦ ·¹À̾ƿô ¸Å´ÏÀú·Î¼­ »ç¿ëÇÏ´Â °æ·®ÀÎ ÄÁÅ×À̳ÊÀÔ´Ï´Ù. Box ¿¡´Â BoxLayout¸¦ »ç¿ëÇÏ´Â ÄÁÅ×ÀÌ³Ê ¶Ç´Â Box°¡ ¾Æ´Ñ ÄÁÅ×À̳ʿ¡µµ Æí¸®ÇÑ Å¬·¡½º ¸Þ¼­µå°¡ ¸î°³Àΰ¡ ÁغñµÇ¾î ÀÖ½À´Ï´Ù.

Box Ŭ·¡½º´Â ·¹À̾ƿô¿¡ ¿µÇâÀ» ÁÖ´Â ¿©·¯Á¾·ùÀÇ ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î Á¢ÂøÁ¦ (glue), ±âµÕ (strut) ¹× °íÁ¤ ¿µ¿ª (rigid area)ÀÔ´Ï´Ù. Box¿¡ Æ÷ÇԵǴ ¸ðµç ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌÁî°¡ °íÁ¤µÇ°í ÀÖ´Â °æ¿ì´Â createGlue°¡ µ¹·ÁÁÖ´Â Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ »ç¿ëÇØ, ÄÄÆÛ³ÍÆ®ÀÇ À§Ä¡¸¦ Á¦¾îÇÒ ¼ö ÀÖ½À´Ï´Ù. 2°³ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌ¿¡ ÀÏÁ¤ÇÑ °ø°£ÀÌ ÇÊ¿äÇÑ °æ¿ì´Â ±âµÕÀ» »ç¿ëÇØ º¸´Â °ÍÀ» ÃßõÇÕ´Ï´Ù (createHorizontalStrut ¶Ç´Â createVerticalStrut). Ç×»ó °°Àº ¾çÀÇ °ø°£À» Â÷ÁöÇÏ´Â ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®°¡ ÇÊ¿äÇÑ °æ¿ì´Â createRigidArea¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î ±× ÄÄÆÛ³ÍÆ®¸¦ ÃëµæÇÕ´Ï´Ù.

BoxLayout¸¦ ±¸ÇöÇÏ°í ÀÖ´Â °æ¿ì, »ó¼¼ÇÑ Á¤º¸¿Í ¿¹¿¡ ´ëÇؼ­´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use BoxLayout¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ±× µÚ·Î´Â java.beans ÆÐÅ°Áö·Î ¸ðµç JavaBeans Àå±â ±â¾ïÀÌ Áö¿ø µË´Ï´Ù. XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.

°ü·Ã Ç׸ñ:
BoxLayout

Áßø(Nested) Ŭ·¡½º °³¿ä
protected  class Box.AccessibleBox
          ÀÌ Å¬·¡½º´Â Box Ŭ·¡½º¿ëÀÇ »ç¿ëÀÚ º¸Á¶ ±â´ÉÀÇ Áö¿ø¸¦ ±¸ÇöÇÏ°í ÀÖ½À´Ï´Ù.
static class Box.Filler
          ·¹À̾ƿô¿¡ °ü·ÃÇØ, ºä¸¦ °¡ÁöÁö ¾Ê´Â °æ·® ÄÄÆÛ³ÍÆ®ÀÇ ±¸ÇöÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
ÇÊµå °³¿ä
protected  AccessibleContext accessibleContext
          ÇöÀç ¼³Á¤µÇ¾î ÀÖ´Â AccessibleContext °´Ã¼ÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
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
 
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
»ý¼ºÀÚ °³¿ä
Box (int axis)
          ÁöÁ¤µÈ ÃàÀ¸·Î µû¶ó ÄÄÆÛ³ÍÆ®¸¦ ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
static Component createGlue ()
          ºÒ°¡½ÃÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static Box createHorizontalBox ()
          ÄÄÆÛ³ÍÆ®¸¦ ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊ¿¡ ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù.
static Component createHorizontalGlue ()
          ¼öÆò ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static Component createHorizontalStrut (int width)
          ºÒ°¡½ÃÀÇ °íÁ¤ÆøÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù.
static Component createRigidArea (Dimension  d)
          Ç×»ó ÁöÁ¤µÈ »çÀÌÁîÀÎ ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù.
static Box createVerticalBox ()
          ÄÄÆÛ³ÍÆ®¸¦ À§¿¡¼­ ¹ØÀ¸·Î ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù.
static Component createVerticalGlue ()
          ¼öÁ÷ ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
static Component createVerticalStrut (int height)
          ºÒ°¡½ÃÀÇ, ³ôÀÌ°¡ °íÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 AccessibleContext getAccessibleContext ()
          ÀÌ ¹Ú½º¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void setLayout (LayoutManager  l)
          AWTError¸¦ Throw ÇÕ´Ï´Ù.
 
Ŭ·¡½º 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
add, add, add, add, add, addContainerListener, addImpl, 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, imageUpdate, 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
 

ÇʵåÀÇ »ó¼¼

accessibleContext

protected AccessibleContext  accessibleContext
ÇöÀç ¼³Á¤µÇ¾î ÀÖ´Â AccessibleContext °´Ã¼ÀÔ´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

Box

public Box(int axis)
ÁöÁ¤µÈ ÃàÀ¸·Î µû¶ó ÄÄÆÛ³ÍÆ®¸¦ ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
axis - BoxLayout.X_AXIS, BoxLayout.Y_AXIS, BoxLayout.LINE_AXIS, ¶Ç´Â BoxLayout.PAGE_AXIS
¿¹¿Ü:
AWTError - axis°¡ ¹«È¿ÀÎ °æ¿ì
°ü·Ã Ç׸ñ:
createHorizontalBox(), createVerticalBox()
¸Þ¼­µåÀÇ »ó¼¼

createHorizontalBox

public static Box  createHorizontalBox()
ÄÄÆÛ³ÍÆ®¸¦ ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊ¿¡ ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®ÀÇ ¹æÇâÀ» °í·ÁÇÑ Box°¡ ÇÊ¿äÇÑ °æ¿ì´Â »ý¼ºÀÚ¸¦ »ç¿ëÇØ Box¸¦ »ý¼ºÇØ, BoxLayout.LINE_AXIS¿¡ °Ç³×ÁÙ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ´ÙÀ½¿¡ ¿¹¸¦ ³ªÅ¸³À´Ï´Ù.

Box lineBox = new Box(BoxLayout.LINE_AXIS);

¹Ýȯ°ª:
¹Ú½º

createVerticalBox

public static Box  createVerticalBox()
ÄÄÆÛ³ÍÆ®¸¦ À§¿¡¼­ ¹ØÀ¸·Î ´Ã¾î³õ´Â Box¸¦ »ý¼ºÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®ÀÇ ¹æÇâÀ» °í·ÁÇÑ Box°¡ ÇÊ¿äÇÑ °æ¿ì´Â »ý¼ºÀÚ¸¦ »ç¿ëÇØ Box¸¦ »ý¼ºÇØ, BoxLayout.PAGE_AXIS¿¡ °Ç³×ÁÙ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ´ÙÀ½¿¡ ¿¹¸¦ ³ªÅ¸³À´Ï´Ù.

Box lineBox = new Box(BoxLayout.PAGE_AXIS);

¹Ýȯ°ª:
¹Ú½º

createRigidArea

public static Component  createRigidArea(Dimension  d)
Ç×»ó ÁöÁ¤µÈ »çÀÌÁîÀÎ ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
d - ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌÁî
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®
°ü·Ã Ç׸ñ:
createGlue(), createHorizontalStrut(int), createVerticalStrut(int)

createHorizontalStrut

public static Component  createHorizontalStrut(int width)
ºÒ°¡½ÃÀÇ °íÁ¤ÆøÄÄÆÛ³ÍÆ®¸¦ »ý¼ºÇÕ´Ï´Ù. ¼öÆò ¹Ú½º¿¡¼­´Â ÀÌ ¸Þ¼­µå¸¦ »ç¿ëÇØ, 2°³ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ °£°ÝÀ» °íÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¼öÁ÷ ¹Ú½º¿¡¼­´Â ÀÌ ¸Þ¼­µå¸¦ »ç¿ëÇØ, ¹Ú½ºÀÇ ³ÐÀ̸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®´Â °ø°£ÀÌ ³²Áö ¾ÊÀº ÇÑ ³ôÀÌ°¡ ¾ø½À´Ï´Ù. °ø°£ÀÌ ³²¾Æ ÀÖÀ¸¸é, ³ôÀÌÀÇ ÃÖ´ë°ª ÀÇ ÁöÁ¤ÀÌ ¾ø´Â ÄÄÆÛ³ÍÆ®¿Í °°°Ô, Àڽſ¡°Ô ÇÊ¿äÇÑ ºÐÀÇ °ø°£À» Â÷ÁöÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
width - ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ Çȼ¿ ´ÜÀ§ÀÇ Æø. °ªÀº Á¦·Î ÀÌ»ó
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®
°ü·Ã Ç׸ñ:
createVerticalStrut(int), createGlue(), createRigidArea(java.awt.Dimension)

createVerticalStrut

public static Component  createVerticalStrut(int height)
ºÒ°¡½ÃÀÇ, ³ôÀÌ°¡ °íÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ¼öÁ÷ ¹Ú½º¿¡¼­´Â ÀÌ ¸Þ¼­µå¸¦ »ç¿ëÇØ, 2°³ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ °£°ÝÀ» °íÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¼öÆò ¹Ú½º¿¡¼­´Â ÀÌ ¸Þ¼­µå¸¦ »ç¿ëÇØ, ¹Ú½ºÀÇ ³ÐÀ̸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®´Â °ø°£ÀÌ ³²Áö ¾ÊÀº ÇÑ ÆøÀÌ ¾ø½À´Ï´Ù. °ø°£ÀÌ ³²¾Æ ÀÖÀ¸¸é, ÆøÀÇ ÃÖ´ë°ª ÀÇ ÁöÁ¤ÀÌ ¾ø´Â ÄÄÆÛ³ÍÆ®¿Í °°°Ô, Àڽſ¡°Ô ÇÊ¿äÇÑ ºÐÀÇ °ø°£À» Â÷ÁöÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
height - ºÒ°¡½Ã ÄÄÆÛ³ÍÆ®ÀÇ Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌ. °ªÀº Á¦·Î ÀÌ»ó
¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®
°ü·Ã Ç׸ñ:
createHorizontalStrut(int), createGlue(), createRigidArea(java.awt.Dimension)

createGlue

public static Component  createGlue()
ºÒ°¡½ÃÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ÀÌ°ÍÀº °¡½Ã ÄÄÆÛ³ÍÆ®¿¡ ¼öÆò ¹Ú½º¿¡ ´ëÇÑ ÃÖ´ëÆøÀ̳ª ¼öÁ÷ ¹Ú½º¿¡ ´ëÇÑ ÃÖ´ë°í°¡ °¡¸®Å°´Â ¹Ú½º¿¡ Æí¸®ÇÕ´Ï´Ù. Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®´Â ¼­·Î ÀÌ¿ôÀÌ µÇ´Â ÄÄÆÛ³ÍÆ®ÀÇ °£°ÝÀ» ¹¯±â À§Çؼ­ ÇÊ¿äÇÑ ¸¸Å­ ´Ã¾î³ª´Â Ç®°ú °°Àº °ÍÀ̶ó°í »ý°¢ÇÒ ¼ö ÀÖ½À´Ï´Ù .

¿¹¸¦ µé¾î 1°³ÀÇ ¼öÆò ¹Ú½º¿¡ °íÁ¤ »çÀÌÁîÀÇ ÄÄÆÛ³ÍÆ®°¡ 2°³ Æ÷ÇԵǾî ÀÖ´Ù°í ÇÕ´Ï´Ù. ÀÌ ¹Ú½º¿¡ °ø°£ÀÌ Ãß°¡µÇ¾îµµ, °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â Ä¿ÁöÁö ¾Ê½À´Ï´Ù. ÀÌ ¶§, Á¢ÂøÁ¦°¡ ¾ø´Â °æ¿ì, 2¹ø°ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¿À¸¥ÂÊÀÇ °ø°£ÀÌ ³²½À´Ï´Ù. ¿©±â¼­ Á¢ÂøÁ¦¸¦ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ »çÀÌ¿¡ µÎ¸é, ³²Àº °ø°£À» Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®°¡ Â÷ÁöÇÕ´Ï´Ù. Á¢ÂøÁ¦¸¦ 1¹ø°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ Àü¿¡ µÎ¸é, ³²Àº °ø°£À» Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®°¡ Â÷ÁöÇØ 2°³ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â ¹Ú½ºÀÇ ¿À¸¥ÂÊÀ¸·Î ÀüÇØÁý´Ï´Ù. 1¹ø°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ Àü ¹× 2¹ø°ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®ÀÇ ÈÄ¿¡ Á¢ÂøÁ¦¸¦ µÎ¸é, 2°³ÀÇ °íÁ¤ »çÀÌÁî ÄÄÆÛ³ÍÆ®´Â ¹Ú½ºÀÇ Áß¾Ó¿¡ ÀüÇØÁý´Ï´Ù.

Á¢ÂøÁ¦¸¦ »ç¿ëÇÏ·Á¸é, Box.createGlue¸¦ È£ÃâÇØ, ¸®ÅÏµÈ ÄÄÆÛ³ÍÆ®¸¦ ÄÁÅ×À̳ʿ¡ Ãß°¡ÇÕ´Ï´Ù. Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¿¡´Â ÃÖ¼ÒÀÇ »çÀÌÁî, ȤÀº ÀûÀýÇÑ »çÀÌÁî°¡ ¾ø½À´Ï´Ù. ±× ¶§¹®¿¡ ¿©ºÐÀÇ °ø°£ÀÌ ¾ø´Â ÇÑ, °ø°£À» Â÷ÁöÇÒ °ÍÀº ¾ø½À´Ï´Ù. ¿©ºÐÀÇ °ø°£ÀÌ ÀÖÀ¸¸é, Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®´Â ¼öÆò ¹æÇâ, ¶Ç´Â ¼öÁ÷ ¹æÇâÀÇ ÀÌ¿ë °¡´ÉÇÑ °ø°£À» Â÷ÁöÇÕ´Ï´Ù. ÀÌ°ÍÀº Æø ȤÀº ³ôÀÌÀÇ ÃÖ´ë°ª ÀÇ ÁöÁ¤ÀÌ ¾ø´Â ÄÄÆÛ³ÍÆ®¿Í °°½À´Ï´Ù.

¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®

createHorizontalGlue

public static Component  createHorizontalGlue()
¼öÆò ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®

createVerticalGlue

public static Component  createVerticalGlue()
¼öÁ÷ ¹æÇâÀÇ Á¢ÂøÁ¦ ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÄÄÆÛ³ÍÆ®

setLayout

public void setLayout(LayoutManager  l)
AWTError¸¦ Throw ÇÕ´Ï´Ù. ¹Ú½º´Â BoxLayout ¸¸À» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Container ³»ÀÇ setLayout
ÆĶó¹ÌÅÍ:
l - »ç¿ëÇÏ´Â ·¹À̾ƿô ¸Å´ÏÀú
°ü·Ã Ç׸ñ:
Container.doLayout(), Container.getLayout()

getAccessibleContext

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

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

JavaTM 2 Platform
Standard Ed. 5.0

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