spyware/src/FSManager.java
private String inputPassword() {
		String password = null;
		JPanel panel = new JPanel();
		JLabel label = new JLabel("Password: ");
		JPasswordField pass = new JPasswordField(10);
		panel.add(label);
		panel.add(pass);
		String[] options = new String[]{"OK", "Cancel"};
		int option = JOptionPane.showOptionDialog(null, panel, "Enter a root password",
				JOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE,
				null, options, options[1]);
		if(option == 0) {// pressing OK button
			password = new String(pass.getPassword());
		}
		return password;
	}
/**
	 * Show input password field
	 *
	 * @return string password
     */
Show input password field
@return string password
Show input password field @return string password
private String inputPassword() {
		String password = null;
		JPanel panel = new JPanel();
		JLabel label = new JLabel("Password: ");
		JPasswordField pass = new JPasswordField(10);
		panel.add(label);
		panel.add(pass);
		String[] options = new String[]{"OK", "Cancel"};
		int option = JOptionPane.showOptionDialog(null, panel, "Enter a root password",
				JOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE,
				null, options, options[1]);
		if(option == 0) {
			password = new String(pass.getPassword());
		}
		return password;
	}
private String inputPassword ( ) { String password = null ; JPanel panel = new JPanel ( ) ; JLabel label = new JLabel ( "Password: " ) ; JPasswordField pass = new JPasswordField ( 10 ) ; panel . add ( label ) ; panel . add ( pass ) ; String [ ] options = new String [ ] { "OK" , "Cancel" } ; int option = JOptionPane . showOptionDialog ( null , panel , "Enter a root password" , JOptionPane . NO_OPTION , JOptionPane . PLAIN_MESSAGE , null , options , options [ 1 ] ) ; if ( option == 0 ) { password = new String ( pass . getPassword ( ) ) ; } return password ; }
Show input password field
 @return string password
Show input password field @return string password
// pressing OK button