KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JPasswordField

javax.swing
Class JPasswordField

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.text.JTextComponent
                  extended by javax.swing.JTextField
                      extended by javax.swing.JPasswordField
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants
See Also:
Top Examples, Source Code, XMLEncoder

public void copy()
See Also:
Clipboard, Toolkit.getSystemClipboard(), JTextComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[273]JPasswordField
By Anonymous on 2004/05/05 15:09:39  Rate
JPasswordField motDePasse = new JPasswordField (  ) ; 
 motDePasse.setEchoChar  ( '*' ) ; 
 String s=motDePasse.copy (  ) ; 
 System.out.println (  s +"OK---------"  ) ; 
 


public void cut()
See Also:
Clipboard, Toolkit.getSystemClipboard(), JTextComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean echoCharIsSet()
See Also:
getEchoChar(), setEchoChar(char)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
JTextField, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public char getEchoChar()
See Also:
echoCharIsSet(), setEchoChar(char)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public char[] getPassword()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public String getText()
See Also:
JTextComponent.setText(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public String getText(int offs,
                                 int len)
               throws BadLocationException
See Also:
JTextComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUIClassID()
See Also:
UIDefaults.getUI(javax.swing.JComponent), JTextField
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPasswordField()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPasswordField(int columns)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPasswordField(String text)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPasswordField(String text,
                      int columns)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JPasswordField(Document doc,
                      String txt,
                      int columns)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String paramString()
See Also:
JTextField
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setEchoChar(char c)
See Also:
getEchoChar(), echoCharIsSet()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags