PropertiesManager genProp = owner.getGeneralPropertiesManager();
if(genProp.getValue("language").equals("fr"))
french.setSelected(true);
else
english.setSelected(true);
languagePanel.setBorder(new TitledBorder(propertiesMgr.getValue("languageBorder")));
//Construct proxy panel.
proxyType = new JComboBox();
proxyType.addItem("No Proxy");
proxyType.addItem("HTTP");
proxyType.addItem("Socks 4");
proxyType.addItem("Socks 5");
proxyType.setSelectedIndex(Integer.parseInt(genProp.getValue("proxyType")));
proxyHost = new JTextField();
proxyHost.setText(genProp.getValue("proxyHost"));
proxyPort = new JTextField();
proxyPort.setText(genProp.getValue("proxyPort"));
proxyPanel.setLayout(new GridBagLayout());
c.gridy = 0;
proxyPanel.add(proxyType, c);
c.gridy = 1;
proxyPanel.add(proxyHost, c);
c.gridy = 2;
proxyPanel.add(proxyPort, c);
proxyPanel.setBorder(new TitledBorder(propertiesMgr.getValue("proxyBorder")));
//Construct option panel
optionPanel.add(languagePanel);
optionPanel.add(proxyPanel);