private static void buttonMathActionsSettings(final JButton button) {
		button.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseClicked(MouseEvent e) {
				String text = textField.getText();
				if (text.contains("+") || text.contains("-")
						|| text.contains("*") || text.contains("/")) {
					List<String> textForCalculate = new<String> ArrayList();
					textForCalculate.add(text);
					textField.setText(Calculator.calculate(textForCalculate)
							+ button.getText());
					return;
				}

				text = text + button.getText();
				textField.setText(text);
			}
		});

	}