if (langDir == null) { langDir = (binDir != null) ? binDir + langID : userDir + langID; }  Debug.msg("langDir=" + langDir); File file = new File(langDir);
File file = new File(JFritzUtils.getFullPath(langID));
	protected JPanel createLocalePane(ActionListener actionListener) {		JPanel localePane = new JPanel();		localePane.setLayout(new GridBagLayout());		localePane.setBorder(BorderFactory.createEmptyBorder(10, 20, 5, 20));		GridBagConstraints c = new GridBagConstraints();		c.insets.top = 5;		c.insets.bottom = 5;		c.insets.left = 5;		c.anchor = GridBagConstraints.WEST;		JLabel label = new JLabel(""); //$NON-NLS-1$		c.gridy = 2;		label = new JLabel(JFritz.getMessage("language") + ": "); //$NON-NLS-1$,  //$NON-NLS-2$		localePane.add(label, c);				String[] classPath = System.getProperty("java.class.path").split(PATHSEP);	//$NON-NLS-1$		String userDir = System.getProperty("user.dir");							//$NON-NLS-1$		if (userDir.endsWith(FILESEP))			userDir = userDir.substring(0, userDir.length() - 1);		String binDir = null;		String langDir = null;		for (int i = 0; i < classPath.length; i++) {			if (classPath[i].endsWith(binID))				binDir = classPath[i].substring(0, classPath[i].length() - binID.length());			else if (classPath[i].endsWith(langID))				langDir = classPath[i];		}		Debug.msg("userDir=" + userDir);											//$NON-NLS-1$		Debug.msg("binDir=" + binDir);												//$NON-NLS-1$				if (langDir == null) {			langDir = (binDir != null) ? binDir + langID : userDir + langID;		}		Debug.msg("langDir=" + langDir);											//$NON-NLS-1$		File file = new File(langDir);				FilenameFilter props = new StartEndFilenameFilter("jfritz","properties");//$NON-NLS-1$,  //$NON-NLS-2$		String[] list = file.list(props);		localeList= new String[list.length];				ImageIcon[]  images = new ImageIcon[list.length];				for (int i = 0; i < list.length; i++) {			localeList[i] = list[i].substring(list[i].indexOf("_") + 1,list[i].indexOf("."));//$NON-NLS-1$,  //$NON-NLS-2$			images[i] = new ImageIcon("lang"+FILESEP+"flags"+FILESEP+localeList[i].substring(localeList[i].indexOf("_")+1, localeList[i].length()) + ".gif");//$NON-NLS-1$,  //$NON-NLS-2$ //$NON-NLS-3$,  //$NON-NLS-4$			images[i].setDescription(JFritz.getLocaleMeaning(localeList[i]));		}						c.fill = GridBagConstraints.HORIZONTAL;				languageCombo = new JComboBox(images);		languageComboBoxRenderer renderer = new languageComboBoxRenderer();		renderer.setPreferredSize(new Dimension(180, 15));		languageCombo.setRenderer(renderer);		languageCombo.setActionCommand("languageCombo"); //$NON-NLS-1$		languageCombo.setMaximumRowCount(8);		languageCombo.addActionListener(actionListener);		localePane.add(languageCombo, c);		return localePane;	}