public PaneFilterItem() {
		super();

		// filterselPane

		filterselPane = new PaneFilterSelect();

		// 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 idx = filterselPane.getIndexFromVarName(varname);
				filterselPane.setCurrentVar(idx);
			}
		});

		// Remove Button

		JButton btnX = new JButton("X");
		btnX.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent ev) {
				JButton btn = (JButton) ev.getSource();
				PaneFilterItem filteritm = (PaneFilterItem) btn.getParent();
				log.severe("Filter Pane - Filter ["
						+ filteritm.varCombo.getSelectedItem()
						+ "] is removed.");
				removeFilterItem();
			}
		});

		GridBagConstraints constraints = new GridBagConstraints();
		setLayout(new GridBagLayout());
		constraints.fill = GridBagConstraints.BOTH;

		constraints.weightx = 0.95;
		constraints.weighty = 0.1;
		constraints.gridx = 0;
		constraints.gridy = 0;
		add(varCombo, constraints);

		constraints.weightx = 0.05;
		constraints.weighty = 0.1;
		constraints.gridx = 1;
		constraints.gridy = 0;
		add(btnX, constraints);

		constraints.weightx = 1.0;
		constraints.weighty = 0.9;
		constraints.gridx = 0;
		constraints.gridy = 1;
		add(filterselPane, constraints);

		setVisible(true);
	}