@SuppressWarnings("deprecation")
	public synchronized static void NumForList(final String outerNum,
			final String flagHangup) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				if (butPanel.countComponents() == 10)
					butPanel.remove(9);
				JButton button = new JButton();
				button.setPreferredSize(new Dimension(300, 70));
				button.setMaximumSize(new Dimension(300, 70));
				button.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent ev) {
						Call(outerNum);
					}
				});
				button.setLayout(new BorderLayout());
				JLabel label1 = null;
				if (numbers.get(outerNum) != null) {
					label1 = new JLabel(numbers.get(outerNum).get(0), JLabel.CENTER);
					label1.setFont(new Font("TimesRoman", Font.BOLD, 18));
				}
				JLabel label2 = null;

				if (flagHangup.equals("Output"))
					label2 = new JLabel(outerNum, new ImageIcon(urlRed),JLabel.CENTER);
				else if (flagHangup.equals("Input"))
					label2 = new JLabel(outerNum, new ImageIcon(urlGreen),JLabel.CENTER);
				else if (flagHangup.equals("MissCall"))
					label2 = new JLabel(outerNum, new ImageIcon(urlMissCall),JLabel.CENTER);
				// if(flagHangup.equals("Output")) label2 = new JLabel(outerNum + "исходящий",JLabel.CENTER);
				// else if(flagHangup.equals("Input")) label2 = new JLabel(outerNum+ "входящий",JLabel.CENTER);
				// else if(flagHangup.equals("MissCall")) label2 = new JLabel(outerNum+ "missCall",JLabel.CENTER);
				label2.setFont(new Font("Serif", Font.BOLD, 22));
				if (label1 != null) {
					button.add(BorderLayout.NORTH, label1);
					button.add(BorderLayout.CENTER, label2);
				} else
					button.add(BorderLayout.CENTER, label2);
				butPanel.add(button, 0);
				butPanel.validate();
				butPanel.repaint();
			}
		});
	}