public PaneColor() {
		log.info("");

		// varCombo

		ArrayList listVar = new ArrayList();
		for (int i = 0; i < PaneData.var_names.size(); i++) {
			String strMeasure = (String) PaneData.var_measures.get(i);
			if (strMeasure.equals("O") || strMeasure.equals("Q"))
				listVar.add(PaneData.var_names.get(i));
		}

		String[] strVarNames = new String[listVar.size()];
		listVar.toArray(strVarNames);

		varCombo = new JComboBox(strVarNames);
		varCombo.setEditable(false);
		varCombo.setMaximumRowCount(4);

		varCombo.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JComboBox box = (JComboBox) e.getSource();
				String varname = (String) box.getSelectedItem();
				int i = colorselPane.getIndexFromVarName(varname);
				colorselPane.setCurrentVar(i);
			}
		});

		// colorselPane

		colorselPane = new PaneColorSelect();
		GridBagConstraints constraints = new GridBagConstraints();

		// btnApply

		JButton btnApply = new JButton("Apply");
		btnApply.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent ev) {
				log.info("Apply button.");
				colorselPane.apply();
			}
		});

		setLayout(new GridBagLayout());

		constraints.fill = GridBagConstraints.BOTH;

		constraints.weightx = 1.0;
		constraints.weighty = 0.15;
		constraints.gridx = 0;
		constraints.gridy = 0;
		add(varCombo, constraints);

		constraints.weightx = 1.0;
		constraints.weighty = 0.70;
		constraints.gridx = 0;
		constraints.gridy = 1;
		add(colorselPane, constraints);

		constraints.weightx = 1.0;
		constraints.weighty = 0.15;
		constraints.gridx = 0;
		constraints.gridy = 2;
		add(btnApply, constraints);

		varCombo.setSelectedIndex(-1);
	}