JavaTM 2 Platform
Standard Ed. 5.0

javax.swing
Ŭ·¡½º JPasswordField

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

public class JPasswordField
extends JTextField

JPasswordField´Â 1 ÇàÀÇ ÅؽºÆ®ÀÇ ÆíÁýÀ» °¡´ÉÇÏ°Ô ÇÏ´Â °æ·® ÄÄÆÛ³ÍÆ®ÀÔ´Ï´Ù. ´Ù¸¸, ºä´Â ÀÔ·ÂÀÌ ÀÖ´ø °ÍÀ» ³ªÅ¸³À´Ï´Ù¸¸, ¾î´À ¹®ÀÚ°¡ ÀԷµǾú´Â°¡´Â Ç¥½ÃÇÏÁö ¾Ê½À´Ï´Ù. »ó¼¼³ª »ç¿ë¿¹¿¡ ´ëÇؼ­´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use Text Fields¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.

JPasswordField´Â echoChar ¼¼Æ®¿Í ÇÔ²² »ç¿ëµÇ´Â java.awt.TextField¿Í ÀÇ ¼Ò½º ȣȯÀ» À§Çؼ­ ÁغñµÇ¾î ÀÖ½À´Ï´Ù. °³º°ÀûÀ¸·Î Á¦°øµÇ°í ÀÖ´Â °ÍÀº Æнº¿öµåÀÇ ÀԷ¿¡ ¿µÇâÀ» ÁÖ´Â °Í ¾øÀÌ, JTextField UI¸¦ ¾ÈÀüÇÏ°Ô ¹× °£´ÜÇÏ°Ô º¯°æÇÒ ¼ö ÀÖµµ·Ï Çϱ⠶§¹®¿¡ÀÔ´Ï´Ù.

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


Áßø(Nested) Ŭ·¡½º °³¿ä
protected  class JPasswordField.AccessibleJPasswordField
          ÀÌ Å¬·¡½º´Â JPasswordField Ŭ·¡½º¿ëÀÇ »ç¿ëÀÚ º¸Á¶ ±â´ÉÀÇ Áö¿ø¸¦ ±¸ÇöÇÏ°í ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JTextField ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JTextField.AccessibleJTextField
 
Ŭ·¡½º javax.swing.text. JTextComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding
 
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
JComponent.AccessibleJComponent
 
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Container.AccessibleAWTContainer
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
ÇÊµå °³¿ä
 
Ŭ·¡½º javax.swing. JTextField ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
notifyAction
 
Ŭ·¡½º javax.swing.text. JTextComponent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
Ŭ·¡½º 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
 
»ý¼ºÀÚ °³¿ä
JPasswordField ()
          »õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù.
JPasswordField (Document  doc, String  txt, int columns)
          ÁöÁ¤µÈ ÅؽºÆ® ½ºÅ丮Áö ¸ðµ¨°ú ·Ä¼ö¸¦ »ç¿ëÇØ »õ·Î¿îÀÇ JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù.
JPasswordField (int columns)
          ÁöÁ¤µÈ ·Ä¼ö·Î »õ·Î¿îÀÇ ºñ¾îÀÖ´Â JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù.
JPasswordField (String  text)
          ÁöÁ¤µÈ ÅؽºÆ®·Î ÃʱâÈ­µÇ´Â »õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù.
JPasswordField (String  text, int columns)
          ÁöÁ¤µÈ ÅؽºÆ®¿Í ¿­·Î ÃʱâÈ­µÇ´Â »õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void copy ()
          ÇöÀçÀÇ Look & Feel ·Î provideErrorFeedback¸¦ È£ÃâÇÕ´Ï´Ù.
 void cut ()
          ÇöÀçÀÇ Look & Feel ·Î provideErrorFeedback¸¦ È£ÃâÇÕ´Ï´Ù.
 boolean echoCharIsSet ()
          ¸Þ¾Æ¸® Ç¥½Ã¿¡ »ç¿ëÇϴ ij¸¯ÅÍ ¼¼Æ®°¡ JPasswordField¿¡ ÁغñµÇ¾î ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 AccessibleContext getAccessibleContext ()
          ÀÌ JPasswordField¿¡ °ü·ÃÇÑ AccessibleContext¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 char getEchoChar ()
          ¸Þ¾Æ¸®¿¡ »ç¿ëÇÏ´Â ¹®ÀÚ¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 char[] getPassword ()
          TextComponent ³»¿¡ Æ÷ÇԵǰí ÀÖ´Â ÅؽºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getText ()
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  Java 2 Ç÷§Æû v1. 2 ÀÌÈÄ, getPassword·Î ¿Å°ÜÁ³½À´Ï´Ù.
 String getText (int offs, int len)
          ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  Java 2 Ç÷§Æû v1. 2 ÀÌÈÄ, getPassword·Î ¿Å°ÜÁ³½À´Ï´Ù.
 String getUIClassID ()
          ÀÌ ÄÄÆÛ³ÍÆ®¸¦ ·»´õ¸µ ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
protected  String paramString ()
          ÀÌ JPasswordField ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù.
 void setEchoChar (char c)
          JPasswordField¿¡ ¸Þ¾Æ¸® ¹®ÀÚ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JTextField ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, isValidateRoot, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffset
 
Ŭ·¡½º javax.swing.text. JTextComponent ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addCaretListener, addInputMethodListener, addKeymap, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write
 
Ŭ·¡½º 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, 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, 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, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, 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, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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
 

»ý¼ºÀÚ »ó¼¼

JPasswordField

public JPasswordField()
»õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù. µðÆúÆ®ÀÇ ¹®¼­¸¦ »ç¿ëÇØ, ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀº null·Î °³½ÃÇÕ´Ï´Ù. ¿­ÀÇ ÆøÀº 0 ÀÔ´Ï´Ù.


JPasswordField

public JPasswordField(String  text)
ÁöÁ¤µÈ ÅؽºÆ®·Î ÃʱâÈ­µÇ´Â »õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù. ¹®¼­ ¸ðµ¨ÀÌ µðÆúÆ®·Î ¼³Á¤µÇ¾î ·Ä¼ö´Â 0 ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
text - Ç¥½ÃµÇ´Â ÅؽºÆ®. ¾ø´Â °æ¿ì´Â null

JPasswordField

public JPasswordField(int columns)
ÁöÁ¤µÈ ·Ä¼ö·Î »õ·Î¿îÀÇ ºñ¾îÀÖ´Â JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù. µðÆúÆ® ¸ðµ¨ÀÌ ÀÛ¼ºµÇ¾î Ãʱâ ij¸¯ÅÍ ¶óÀÎÀº null·Î ¼³Á¤µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
columns - ·Ä¼ö >= 0

JPasswordField

public JPasswordField(String  text,
                      int columns)
ÁöÁ¤µÈ ÅؽºÆ®¿Í ¿­·Î ÃʱâÈ­µÇ´Â »õ·Î¿î JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù. ¹®¼­ ¸ðµ¨ÀÌ µðÆúÆ®·Î ¼³Á¤µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
text - Ç¥½ÃµÇ´Â ÅؽºÆ®. ¾ø´Â °æ¿ì´Â null
columns - ·Ä¼ö >= 0

JPasswordField

public JPasswordField(Document  doc,
                      String  txt,
                      int columns)
ÁöÁ¤µÈ ÅؽºÆ® ½ºÅ丮Áö ¸ðµ¨°ú ·Ä¼ö¸¦ »ç¿ëÇØ »õ·Î¿îÀÇ JPasswordField¸¦ ±¸ÃàÇÕ´Ï´Ù. ÀÌ°ÍÀº ´Ù¸¥ »ý¼ºÀÚ°¡ ÀÔ·ÂÇÏ´Â »ý¼ºÀÚ ÀÔ´Ï´Ù. ¸Þ¾Æ¸® ¹®ÀÚ´Â ¡¸*¡¹À¸·Î ¼³Á¤µË´Ï´Ù. ¹®¼­ ¸ðµ¨ÀÌ nullÀÎ °æ¿ì´Â µðÆúÆ® ¸ðµ¨ÀÌ ÀÛ¼ºµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
doc - »ç¿ëÇÏ´Â ÅؽºÆ® ½ºÅ丮Áö
txt - Ç¥½ÃµÇ´Â ÅؽºÆ®. ¾ø´Â °æ¿ì´Â null
columns - ÀûÀýÇÑ ÆøÀÇ °è»ê¿¡ »ç¿ëÇÏ´Â ·Ä¼ö (0 ÀÌ»ó). ·Ä¼ö¸¦ Á¦·Î·Î ¼³Á¤Çϸé, ÄÄÆÛ³ÍÆ®ÀÇ ±¸Çö¿¡ ÀÇÇØ ÀÚ¿¬½º·´°Ô »ý±â´Â °ªÀÌ ÀûÀýÇÑ ÆøÀÌ µÈ´Ù
¸Þ¼­µåÀÇ »ó¼¼

getUIClassID

public String  getUIClassID()
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ ·»´õ¸µ ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JTextField ³»ÀÇ getUIClassID
¹Ýȯ°ª:
ij¸¯ÅÍ ¶óÀÎ ¡¸PasswordFieldUI¡¹
°ü·Ã Ç׸ñ:
JComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)

getEchoChar

public char getEchoChar()
¸Þ¾Æ¸®¿¡ »ç¿ëÇÏ´Â ¹®ÀÚ¸¦ ¸®ÅÏÇÕ´Ï´Ù. µðÆúÆ®´Â ¡¸*¡¹ÀÔ´Ï´Ù.

¹Ýȯ°ª:
¸Þ¾Æ¸® ¹®ÀÚ. ¼³Á¤ÀÌ ¾ø´Â °æ¿ì´Â 0
°ü·Ã Ç׸ñ:
setEchoChar(char), echoCharIsSet()

setEchoChar

public void setEchoChar(char c)
JPasswordField¿¡ ¸Þ¾Æ¸® ¹®ÀÚ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ¸Þ¾Æ¸® ¹®Àڴ ǥ½Ã³Ê¹« ½Ç ¸»ÇÏ´Â Á¡¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ÀνºÅç µÇ´Â ºä´Â ÀÓÀÇÀÇ ±×·¡ÇÈÀÎ ¹æ¹ýÀ» »ç¿ëÇØ Çʵ带 Ç¥½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù. °ªÀ» 0 À¸·Î ¼³Á¤Çϸé, Ç¥ÁØÀÇ JTextField µ¿ÀÛ°ú °°°Ô, ÅؽºÆ®¸¦ ÀÔ·ÂÇß´ø ´ë·Î Ç¥½Ã½ÃÅ°´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - Ç¥½ÃÇÏ´Â ¸Þ¾Æ¸® ¹®ÀÚ
°ü·Ã Ç׸ñ:
echoCharIsSet(), getEchoChar()

echoCharIsSet

public boolean echoCharIsSet()
¸Þ¾Æ¸® Ç¥½Ã¿¡ »ç¿ëÇϴ ij¸¯ÅÍ ¼¼Æ®°¡ JPasswordField¿¡ ÁغñµÇ¾î ÀÖ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸Þ¾Æ¸® ¹®ÀÚ°¡ 0 ÀÌ ¾Æ´Ï¸é, ¸Þ¾Æ¸® ¹®ÀÚ°¡ ¼³Á¤µÇ¾î ÀÖ´Ù°í Çؼ®µË´Ï´Ù.

¹Ýȯ°ª:
¸Þ¾Æ¸® Ç¥½Ã¿¡ »ç¿ëÇÏ´Â ¹®ÀÚ°¡ ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
setEchoChar(char), getEchoChar()

cut

public void cut()
ÇöÀçÀÇ Look & Feel ·Î provideErrorFeedback¸¦ È£ÃâÇÕ´Ï´Ù. º¸Åë ÀÌ°ÍÀº ¿¡·¯ beepÀ½À» °³½ÃÇÕ´Ï´Ù. °ü·ÃÇÑ ÅؽºÆ® ¸ðµ¨³»ÀÇ ÇöÀç ¼±Åõǰí ÀÖ´Â ¿µ¿ªÀ» ½Ã½ºÅÛ Å¬¸³º¸µå¿¡ Àü¼Û ÇØ, ¸ðµ¨·ÎºÎÅÍ ÄÁÅÙÃ÷¸¦ »èÁ¦ÇÏ´Â º¸Åë ÀÇ µ¿ÀÛÀº Æнº¿öµåÀÇ ÀÔ·Â Çʵ忡´Â ¹Þ¾Æµé¿©ÁöÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JTextComponent ³»ÀÇ cut
°ü·Ã Ç׸ñ:
Toolkit.getSystemClipboard(), Clipboard

copy

public void copy()
ÇöÀçÀÇ Look & Feel ·Î provideErrorFeedback¸¦ È£ÃâÇÕ´Ï´Ù. º¸Åë ÀÌ°ÍÀº ¿¡·¯ beepÀ½À» °³½ÃÇÕ´Ï´Ù. °ü·ÃÇÑ ÅؽºÆ® ¸ðµ¨³»ÀÇ ÇöÀç ¼±Åõǰí ÀÖ´Â ¿µ¿ªÀ» ½Ã½ºÅÛ Å¬¸³º¸µå¿¡ Àü¼Û ÇØ, ¸ðµ¨¿¡ ÄÁÅÙÃ÷¸¦ ³²±â´Â º¸Åë ÀÇ µ¿ÀÛÀº Æнº¿öµåÀÇ ÀÔ·Â Çʵ忡´Â ¹Þ¾Æµé¿©ÁöÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JTextComponent ³»ÀÇ copy
°ü·Ã Ç׸ñ:
Toolkit.getSystemClipboard(), Clipboard

getText

@Deprecated 
public String  getText()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  Java 2 Ç÷§Æû v1. 2 ÀÌÈÄ, getPassword·Î ¿Å°ÜÁ³½À´Ï´Ù.

ÀÌ TextComponent¿¡ Æ÷ÇÔµÈ ÅؽºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ±âº»ÀÌ µÇ´Â ¹®¼­°¡ nullÀÎ °æ¿ì´Â NullPointerExceptionÀ» ¸®ÅÏÇÕ´Ï´Ù.

º¸¾È»óÀÇ ÀÌÀ¯·Î ÀÌ ¸Þ¼­µå´Â Ãßõ µÇÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡ * getPassword ¸Þ¼­µå¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JTextComponent ³»ÀÇ getText
¹Ýȯ°ª:
ÅؽºÆ®
°ü·Ã Ç׸ñ:
JTextComponent.setText(java.lang.String)

getText

@Deprecated 
public String  getText(int offs,
                                 int len)
               throws BadLocationException 
ÃßõÇÏÁö ¾Ê½À´Ï´Ù.  Java 2 Ç÷§Æû v1. 2 ÀÌÈÄ, getPassword·Î ¿Å°ÜÁ³½À´Ï´Ù.

ÄÄÆÛ³ÍÆ®°¡ ³ªÅ¸³»´Â ÅؽºÆ®ÀÇ ÀϺθ¦ ²¨³À´Ï´Ù. ±æÀÌ°¡ 0ÀÎ °æ¿ì´Â ºñ¾îÀִ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.

º¸¾È»óÀÇ ÀÌÀ¯·Î ÀÌ ¸Þ¼­µå´Â Ãßõ µÇÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡ getPassword ¸Þ¼­µå¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JTextComponent ³»ÀÇ getText
ÆĶó¹ÌÅÍ:
offs - ¿ÀÇÁ¼Â(offset) >= 0
len - ±æÀÌ (0 ÀÌ»ó)
¹Ýȯ°ª:
ÅؽºÆ®
¿¹¿Ü:
BadLocationException - ¿ÀÇÁ¼Â(offset) ¶Ç´Â ±æÀÌ°¡ ¹«È¿ÀÎ °æ¿ì

getPassword

public char[] getPassword()
TextComponent ³»¿¡ Æ÷ÇԵǰí ÀÖ´Â ÅؽºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. ±âº»ÀÌ µÇ´Â ¹®¼­°¡ nullÀÎ °æ¿ì´Â NullPointerExceptionÀ» ¸®ÅÏÇÕ´Ï´Ù. ½ÃÅ¥·¯Æ¼ °­È­¸¦ À§Çؼ­ ¸®ÅÏµÈ ¹®ÀÚÀÇ ¹è¿­À» »ç¿ëÇÑ µÚ´Â °¢ ¹®ÀÚ¸¦ Á¦·Î·Î ¼³Á¤ÇØ Å¬¸®¾î ÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÅؽºÆ®

paramString

protected String  paramString()
ÀÌ JPasswordField ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â µð¹ö±× Àü¿ëÀ̸ç, ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. ¸®ÅÏµÈ Ä³¸¯ÅÍ ¶óÀÎÀº ºñ¾îÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸, null·Î´Â µÇÁö ¾Ê½À´Ï´Ù.

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

getAccessibleContext

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

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

JavaTM 2 Platform
Standard Ed. 5.0

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