private void prepareParameterPanel() {
		GridBagConstraints c = new GridBagConstraints();
		c.insets = new Insets(2, 2, 2, 2);
		c.anchor = GridBagConstraints.WEST;
		parameterPanel = new JPanel(new GridBagLayout());
		parameterPanel.setBorder(BorderFactory.createTitledBorder("ConnectionParameter"));

		int x,y;


		//Add config name
		x=0;
		y=0;
		c.weightx = labelWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Profile:"), c);
		c.weightx = textWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		profileModel=new DefaultComboBoxModel(parameterSet.getParameterNameArray());
		comboProfile = new JComboBox(
				profileModel
		);
		comboProfile.setEditable(true);
		if(profileModel.getSize()>0){
			currentProfileName=String.valueOf(profileModel.getSelectedItem());
		}

		comboProfile.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent actionEvent) {
//				System.out.println(actionEvent.getActionCommand());
				if("comboBoxChanged".equals(actionEvent.getActionCommand())){
					String pName=String.valueOf(comboProfile.getSelectedItem());
					if(parameterSet.isNameExist(pName)){
						fillWithParameter(pName);
						currentProfileName=pName;
					}
				}
				else if("comboBoxEdited".equals(actionEvent.getActionCommand())){
					String pName=String.valueOf(comboProfile.getSelectedItem());
					if(pName.length()==0){
						System.out.println("currentProfileName1 = " + currentProfileName);
						profileModel.removeElement(currentProfileName);
						parameterSet.removeParameter(currentProfileName);
						currentProfileName=String.valueOf(profileModel.getSelectedItem());
						if(currentProfileName==null){
							currentProfileName="";
						}
						System.out.println("currentProfileName2 = " + currentProfileName);
					}
				}
			}
		});
		parameterPanel.add(comboProfile, c);

		//Add Config Button
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel(""), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		c.anchor = GridBagConstraints.EAST;
		buttonSystemConfig = new JButton("System Config");
		parameterPanel.add(buttonSystemConfig, c);
		c.anchor = GridBagConstraints.WEST;
		ActionListener configListener = new ActionListener() {
			public void actionPerformed(ActionEvent ae) {
				SystemConfigDialog sd=new SystemConfigDialog(mainFrame, parameterSet);
				sd.setVisible(true);
			}
		};
		buttonSystemConfig.addActionListener(configListener);


		x=0;
		y++;

		//Add Driver
		c.weightx = labelWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Driver:"), c);
		c.weightx = textWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		comboDriver = new JComboBox(parameterSet.getDriverArray());
		comboDriver.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent actionEvent) {
				if(textUrl.getText().length()==0){
					String driverName=String.valueOf(comboDriver.getSelectedItem());
					textUrl.setText(parameterSet.getDefaultUrl(driverName));
				}
			}
		});
		parameterPanel.add(comboDriver, c);

		//Add File
		c.weightx = labelWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Excel File:"), c);
		c.weightx = textWeight;
		c.weighty = 0;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textFileName = new JTextField("");
		parameterPanel.add(textFileName, c);


		x=0;
		y++;
		//Add Url
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("URL:"), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textUrl = new JTextField();
		parameterPanel.add(textUrl, c);

		//Add Select Button
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel(""), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		c.anchor = GridBagConstraints.EAST;
		buttonSelectFile = new JButton("Select File");
		parameterPanel.add(buttonSelectFile, c);
		c.anchor = GridBagConstraints.WEST;
		ActionListener selectListener = new ActionListener() {
			public void actionPerformed(ActionEvent ae) {
				if(IS_MAC){
					selectDistFileAWT();
				}
				else{
					selectDistFileSwing();
				}
			}
		};
		buttonSelectFile.addActionListener(selectListener);


		x=0;
		y++;
		//Add username
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("User Name:"), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textUsername = new JTextField();
		parameterPanel.add(textUsername, c);

		//Add title line
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Title Line:"), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textTitleLine = new JTextField();
		parameterPanel.add(textTitleLine, c);

		x=0;
		y++;
		//Add password
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Password:"), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textPassword = new JTextField();
		parameterPanel.add(textPassword, c);

		//Add data line
		c.weightx = labelWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.NONE;
		parameterPanel.add(new JLabel("Data Line:"), c);
		c.weightx = textWeight;
		c.gridx = x++;
		c.gridy = y;
		c.fill = GridBagConstraints.HORIZONTAL;
		textDataLine = new JTextField();
		parameterPanel.add(textDataLine, c);
	}