JavaTM 2
Platform
Std.  Ed.  v1. 4.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
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Accessible , ImageObserver , MenuContainer , Scrollable , Serializable , SwingConstants

public class JPasswordField
extends JTextField

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

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

Ç¥ÁØÀÇ Look & Feel (L&F) Ç¥ÇöÀ¸·Î ÀÌ ÄÄÆÛ³ÍÆ®°¡ »ç¿ëÇϴ Űº¸µåÀÇ Å°¿¡ ´ëÇØ¼­´Â JPasswordField ÀÇ Å°ÀÇ ÇÒ´çÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ ¼­Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼­´Â ¸ðµç JavaBeansTM ÀÇ Àå±â°£ÀÇ ¿î¿ë¿¡ ´ëÇÑ ¼­Æ÷Æ®°¡ java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä
protected  class JPasswordField.AccessibleJPasswordField
          ÀÌ Å¬·¡½º´Â JPasswordField Ŭ·¡½º¿ëÀÇ À¯Àú º¸Á¶ ±â´ÉÀÇ ¼­Æ÷Æ®¸¦ ±¸ÇöÇϰí ÀÖ½À´Ï´Ù.
 
Ŭ·¡½º javax.swing. JTextField À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º javax.swing.text. JTextComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
JTextComponent.KeyBinding
 
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
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 ()
          ¿¡ÄÚ¿¡ »ç¿ëÇϴ ij¸¯Å͸¦ µ¹·ÁÁÝ´Ï´Ù.
 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 ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù.
 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 , addPropertyChangeListener , addPropertyChangeListener , addVetoableChangeListener , computeVisibleRect , contains , createToolTip , disable , enable , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , fireVetoableChange , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAncestorListeners , getAutoscrolls , getBorder , getBounds , getClientProperty , getComponentGraphics , getConditionForKeyStroke , getDebugGraphicsOptions , getDefaultLocale , getGraphics , getHeight , getInputMap , getInputMap , getInputVerifier , getInsets , getInsets , getListeners , getLocation , getMaximumSize , getMinimumSize , getNextFocusableComponent , getPropertyChangeListeners , getPropertyChangeListeners , getRegisteredKeyStrokes , getRootPane , getSize , getToolTipLocation , getToolTipText , getTopLevelAncestor , getTransferHandler , getVerifyInputWhenFocusTarget , getVetoableChangeListeners , getVisibleRect , getWidth , getX , getY , grabFocus , isDoubleBuffered , isLightweightComponent , isManagingFocus , isMaximumSizeSet , isMinimumSizeSet , isOpaque , isOptimizedDrawingEnabled , isPaintingTile , isPreferredSizeSet , isRequestFocusEnabled , paint , paintBorder , paintChildren , paintComponent , paintImmediately , paintImmediately , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processKeyBinding , processKeyEvent , processMouseMotionEvent , putClientProperty , registerKeyboardAction , registerKeyboardAction , removeAncestorListener , removePropertyChangeListener , removePropertyChangeListener , removeVetoableChangeListener , repaint , repaint , requestDefaultFocus , requestFocus , requestFocus , requestFocusInWindow , requestFocusInWindow , resetKeyboardActions , reshape , revalidate , setActionMap , setAlignmentX , setAlignmentY , setAutoscrolls , setBackground , setBorder , setDebugGraphicsOptions , setDefaultLocale , setDoubleBuffered , setEnabled , setForeground , 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 , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , 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 , getBackground , getBounds , getColorModel , getComponentListeners , getComponentOrientation , getCursor , getDropTarget , getFocusCycleRootAncestor , getFocusListeners , getFocusTraversalKeysEnabled , getFont , getFontMetrics , getForeground , getGraphicsConfiguration , getHierarchyBoundsListeners , getHierarchyListeners , getIgnoreRepaint , getInputContext , getInputMethodListeners , getKeyListeners , getLocale , getLocation , getLocationOnScreen , getMouseListeners , getMouseMotionListeners , getMouseWheelListeners , getName , getParent , getPeer , getSize , getToolkit , getTreeLock , gotFocus , handleEvent , hasFocus , hide , imageUpdate , inside , isBackgroundSet , isCursorSet , isDisplayable , isEnabled , isFocusable , isFocusOwner , isFocusTraversable , isFontSet , isForegroundSet , isLightweight , 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 , processMouseEvent , processMouseWheelEvent , remove , removeComponentListener , removeFocusListener , removeHierarchyBoundsListener , removeHierarchyListener , removeInputMethodListener , removeKeyListener , removeMouseListener , removeMouseMotionListener , removeMouseWheelListener , 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 ¸¦ ±¸ÃàÇÕ´Ï´Ù. À̰ÍÀº ´Ù¸¥ constructor ÀÌ ÀÔ·ÂÇÏ´Â constructor ÀÔ´Ï´Ù. ¿¡ÄÚ Ä³¸¯ÅÍ´Â ¡¸*¡¹À¸·Î ¼³Á¤µË´Ï´Ù. ¹®¼­ ¸ðµ¨ÀÌ 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()
¿¡ÄÚ¿¡ »ç¿ëÇϴ ij¸¯Å͸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®´Â ¡¸*¡¹ÀÔ´Ï´Ù.

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

setEchoChar

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

ÆÄ¶ó¹ÌÅÍ:
c - Ç¥½ÃÇÏ´Â ¿¡ÄÚ Ä³¸¯ÅÍ
°ü·Ã Ç׸ñ:
echoCharIsSet() , getEchoChar()

echoCharIsSet

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

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

cut

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

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

copy

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

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

getText

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

ÀÌ TextComponent ¿¡ ÀúÀåµÈ ÅØ½ºÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ±âº»ÀÌ µÇ´Â ¹®¼­°¡ null ÀÇ °æ¿ì´Â NullPointerException ¸¦ µ¹·ÁÁÝ´Ï´Ù.

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

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

getText

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

ÄÄÆÛ³ÍÆ®°¡ ³ªÅ¸³»´Â ÅØ½ºÆ®ÀÇ ÀϺθ¦ ²¨³À´Ï´Ù. ±æÀ̰¡ 0 ÀÇ °æ¿ì´Â ÇÏ´ÃÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» µ¹·ÁÁÝ´Ï´Ù.

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

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

getPassword

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

¹Ýȯ°ª:
ÅØ½ºÆ®

paramString

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

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

getAccessibleContext

public AccessibleContext  getAccessibleContext()
ÀÌ JPasswordField ¿¡ °ü·ÃÇÑ AccessibleContext ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÆÐ½º¿öµå ÇʵåÀÇ °æ¿ì,AccessibleContext ´Â AccessibleJPasswordField ÀÇ Çü½ÄÀ» ÃëÇÕ´Ï´Ù. Çʿ信 µû¶ó¼­ ½Å±ÔÀÇ AccessibleJPasswordField ÀνºÅϽº°¡ ÀÛ¼ºµË´Ï´Ù.

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

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.