private JCheckBox getChkShowPassword ( ) { if ( chkShowPassword == null ) { chkShowPassword = new JCheckBox ( ) ; chkShowPassword . setText ( Constant . messages . getString ( "conn.options.proxy.auth.showpass" ) ) ; chkShowPassword . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { if ( chkShowPassword . isSelected ( ) ) { txtProxyChainPassword . setEchoChar ( ( char ) 0 ) ; } else { txtProxyChainPassword . setEchoChar ( ' ' ) ; } } } ) ; } return chkShowPassword ; }
This method initializes chkShowPassword