public MainGui() {
		super("Reminder");

		try {
			init_settings();
			init_message_list();
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			image_icon = Toolkit.getDefaultToolkit().getImage("data/Wall_clock.png");
		} catch (Exception e) {
			e.printStackTrace();
		}
		add_fields();

		if (SystemTray.isSupported()) {

			tray = SystemTray.getSystemTray();

			add_popupmenue();

			trayIcon = new TrayIcon(image_icon, "Reminder", popup);
			trayIcon.setImageAutoSize(true);
		} else {

		}
		add_events();

		setIconImage(image_icon);
		setSize(400, 190);

		// set to centar of screan
		Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		int x = (int) ((dimension.getWidth() - getWidth()) / 2);
		int y = (int) ((dimension.getHeight() - getHeight()) / 2);
		setLocation(x, y);

		setResizable(false);
		setVisible(true);
		
		start_counter();
	}