private void init_form() {
		try {

			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			image_icon = Toolkit.getDefaultToolkit().getImage("data/settings.png");
			setIconImage(image_icon);

			setSize(250, 150);
			setResizable(false);
			Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
			int x = (int) ((dimension.getWidth() - getWidth()) / 2);
			int y = (int) ((dimension.getHeight() - getHeight()) / 2);
			setLocation(x, y);

			timeSpinner = new JSpinner(new SpinnerDateModel());
			JSpinner.DateEditor timeEditor = new JSpinner.DateEditor(timeSpinner, "HH:mm:ss");
			timeSpinner.setEditor(timeEditor);
			long data_time= (sp.period - (1000 * 60 * 60));//>0?sp.period - 1000 * 60 * 60:0;
			Date dat=new Date();
			dat.setTime(data_time);
			timeSpinner.setValue(dat);
			JPanel jp = new JPanel(new BorderLayout());
			jp.setBorder(BorderFactory.createTitledBorder(""));
			JLabel jl = new JLabel(" Select timout: ");
			jl.setHorizontalAlignment(JLabel.RIGHT);
			jp.add(jl, BorderLayout.WEST);
			JPanel jpt = new JPanel();
			jpt.add(timeSpinner);
			jp.add(jpt, BorderLayout.CENTER);
			add(jp, BorderLayout.NORTH);

			jb = new JCheckBox("Play song");
			jp = new JPanel(new GridLayout(1, 2));
			jp.add(jb);
			add(jp, BorderLayout.CENTER);

			jp = new JPanel(new GridLayout(1, 2));
			JPanel tmp = new JPanel();

			jb_S = new JButton("Save");
			tmp.add(jb_S);
			jp.add(tmp);
			jb_c = new JButton("Cancel");
			tmp = new JPanel();
			tmp.add(jb_c);
			jp.add(tmp);
			add(jp, BorderLayout.SOUTH);

			setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}