password.setPreferredSize(new Dimension(password.getWidth(), 27));
	private void createAccessPanel() {		accessOptions = new TN5250jMultiSelectList();		if (props.getProperty("emul.accessDigest") != null)			accessOptions.setEnabled(false);		Vector options = OptionAccessFactory.getInstance().getOptions();		// set up a hashtable of option descriptions to options		Hashtable ht = new Hashtable(options.size());		for (int x = 0; x < options.size(); x++) {			ht.put(LangTool.getString("key." + options.get(x)), options.get(x));		}		// get the sorted descriptions of the options		Vector descriptions =			OptionAccessFactory.getInstance().getOptionDescriptions();		// set the option descriptions		accessOptions.setListData(descriptions);		// we now mark the invalid options		int num =			OptionAccessFactory.getInstance().getNumberOfRestrictedOptions();		int[] si = new int[num];		int i = 0;		for (int x = 0; x < descriptions.size(); x++) {			if (!OptionAccessFactory				.getInstance()				.isValidOption((String) ht.get(descriptions.get(x))))				si[i++] = x;		}		accessOptions.setSelectedIndices(si);		accessOptions.setSourceHeader(LangTool.getString("ss.labelActive")                                    ,JLabel.CENTER);		accessOptions.setSelectionHeader(LangTool.getString("ss.labelRestricted")                                    ,JLabel.CENTER);		// create emulator options panel		accessPanel.setLayout(new BorderLayout());		accessPanel.setBorder(BorderFactory.createEmptyBorder(5, 10, 10, 5));		accessPanel.add(accessOptions, BorderLayout.CENTER);		JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));		Action action =			new AbstractAction(LangTool.getString("ss.labelSetPass")) {			public void actionPerformed(ActionEvent e) {				if (password.getPassword().length > 0) {					try {						DESSHA1 sha = new DESSHA1();						props.setProperty(							"emul.accessDigest",							sha.digest(								new String(password.getPassword()),								"tn5205j"));					} catch (Exception ex) {					}				}			}		};		setPassButton = new JButton(action);		setPassButton.setPreferredSize(new Dimension(150, 27));		if (props.getProperty("emul.accessDigest") != null)			setPassButton.setEnabled(false);		passPanel.add(setPassButton);		password = new JPasswordField(15);		password.setDocument(new CheckPasswordDocument());		password.setPreferredSize(new Dimension(password.getWidth(), 27));		passPanel.add(password);		accessPanel.add(passPanel, BorderLayout.NORTH);	}