public final void initUI() {

		JPanel panel = new JPanel();
		panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
		panel.setBorder(BorderFactory.createEmptyBorder(40, 40, 40, 40));
		setLayout(new BorderLayout());

		panel.add(Box.createHorizontalGlue());
		slider = new JSlider(0, 150, 0);

		slider.setPreferredSize(new Dimension(150, 30));

		slider.addChangeListener(new ChangeListener() {
			@Override
			public void stateChanged(ChangeEvent event) {
				int value = slider.getValue();
				if (value == 0) {
					label.setIcon(mute);
				} else if (value > 0 && value <= 30) {
					label.setIcon(min);
				} else if (value > 30 && value < 80) {
					label.setIcon(med);
				} else {
					label.setIcon(max);
				}
			}
		});

		panel.add(slider);
		panel.add(Box.createRigidArea(new Dimension(5, 0)));

		label = new JLabel(mute, JLabel.CENTER);
		panel.add(label);
		panel.add(Box.createHorizontalGlue());
		add(panel, BorderLayout.CENTER);

		pack();

		setTitle("JSlider");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
	}