@Override
	public LoggerPanel getLoggerPanel(int defaultID, String supplierName)
	{
		final Vector<ChoiceItem> data = new Vector<ChoiceItem>(items.size());
		for (Entry<Integer, BarItem> item : items.entrySet())
		{
			ChoiceItem toAdd = new ChoiceItem();
			toAdd.id = item.getKey();
			toAdd.item = item.getValue();
			toAdd.cmpValue = item.getValue().checker.count(supplierName);
			data.add(toAdd);
		}
		Collections.sort(data);
		final JLabel infoLabel = new JLabel(data.get(0).item.defaultQtt);
		final JComboBox<ChoiceItem> combo = new JComboBox<ChoiceItem>(data);
		combo.setSelectedIndex(0);
		combo.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0)
			{
				infoLabel.setText(((ChoiceItem) combo.getSelectedItem()).item.defaultQtt);
			}
		});
		@SuppressWarnings("serial")
		LoggerPanel loggerPanel = new LoggerPanel() {
			@Override
			public void setBarID(int id)
			{
				for (ChoiceItem item : data)
				{
					if (item.id == id)
					{
						combo.setSelectedItem(item);
						infoLabel.setText(item.item.defaultQtt);
						return;
					}
				}
				System.err.println("Corrupt data (Bar2Auto.getLoggerPanel -> setBarID)");
			}
			@Override
			public int getBarID()
			{
				return ((ChoiceItem) combo.getSelectedItem()).id;
			}
		};
		loggerPanel.setLayout(new BoxLayout(loggerPanel, BoxLayout.Y_AXIS));
		JPanel comboPanel = new JPanel(new BorderLayout(5, 0));
		comboPanel.add(new JLabel(AutoAppro.messages.getString("bar2auto_type")), BorderLayout.LINE_START);
		comboPanel.add(combo, BorderLayout.CENTER);
		loggerPanel.add(comboPanel);
		JPanel infoPanel = new JPanel(new BorderLayout(5,  0));
		infoPanel.add(new JLabel(AutoAppro.messages.getString("bar2auto_info")), BorderLayout.LINE_START);
		infoPanel.add(infoLabel, BorderLayout.CENTER);
		loggerPanel.add(infoPanel);
		return loggerPanel;
	}