private void add_popupmenue() {

		popup = new PopupMenu();

		MenuItem defaultItem = new MenuItem("Exit");
		defaultItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try {
					PrintWriter writer = new PrintWriter(file_nema, "UTF-8");
					writer.println(SettingsPodsetnik.TIMEOUT_TAG + "=" + sp.period);
					writer.println(SettingsPodsetnik.PLAY_SOUND_TAG + "=" + (sp.play_sound ? 1 : 0));

					writer.close();

					System.exit(DISPOSE_ON_CLOSE);
				} catch (Exception er) {
					er.printStackTrace();
				}
			}
		});
		popup.add(defaultItem);

		defaultItem = new MenuItem("Open");
		defaultItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(true);
				setExtendedState(JFrame.NORMAL);
			}
		});
		popup.add(defaultItem);

		defaultItem = new MenuItem("Settings");
		defaultItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				SettngsGui settingsgui = new SettngsGui(sp);
				settingsgui.setVisible(true);
			}
		});
		popup.add(defaultItem);
	}