public OdigoiAdd(int editId) {
		/*
		 * parathiro gia thn prosthiki i tin epe3ergasia odigou, an to editId einai 0 tote kanei prosthiki alliws epexergasia
		 */
		con = new Mysql();
		id=editId;
		if(id==0) // vazei ton katallhlo titlo analoga thn leitourgia pou exei epilex8ei
			setTitle("Prosthiki Odigou");
		else
			setTitle("Epe3ergasia Odigou");
		
		/* vgazei to para8uro sto kedro tis othonis me diastaseis 300x220 */
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		this.setBounds(dim.width/2-150, dim.height/2-125, 300, 245);
		/*--------------*/
		this.setResizable(false);
		getContentPane().setBackground(Color.WHITE);
		getContentPane().setLayout(null);
		
		JLabel onomaLabel = new JLabel("Onoma:");
		onomaLabel.setBounds(10, 11, 70, 14);
		getContentPane().add(onomaLabel);
		
		JLabel eponimoLabel = new JLabel("Epwnimo:");
		eponimoLabel.setBounds(10, 36, 70, 14);
		getContentPane().add(eponimoLabel);
		
		JLabel usernameLabel = new JLabel("Username:");
		usernameLabel.setBounds(10, 61, 70, 14);
		getContentPane().add(usernameLabel);
		
		JLabel kodikosLabel = new JLabel("Password:");
		kodikosLabel.setBounds(10, 86, 70, 14);
		getContentPane().add(kodikosLabel);
		
		JLabel kodikosELabel = new JLabel("Epal. Kwdikou:");
		kodikosELabel.setBounds(10, 111, 70, 14);
		getContentPane().add(kodikosELabel);
		
		oximaLabel = new JLabel("Oxima:");
		oximaLabel.setBounds(10, 136, 90, 14);
		getContentPane().add(oximaLabel);
		
		name = new JTextField();
		name.setBounds(101, 8, 125, 20);
		getContentPane().add(name);
		name.setColumns(10);
		
		surname = new JTextField();
		surname.setBounds(101, 33, 125, 20);
		getContentPane().add(surname);
		surname.setColumns(10);
		
		username = new JTextField();
		username.setBounds(101, 58, 125, 20);
		getContentPane().add(username);
		username.setColumns(10);
		
		pass = new JPasswordField();
		pass.setBounds(101, 83, 125, 20);
		getContentPane().add(pass);
		
		
		
		pass2 = new JPasswordField();
		pass2.setBounds(101, 108, 125, 17);
		getContentPane().add(pass2);
		
		
		
		oximataBox = new JComboBox<String>();
		oximataBox.setBounds(101, 133, 125, 20);
		getContentPane().add(oximataBox);
		addOximata();
		
		JButton saveButton = new JButton("Save");
		saveButton.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				/*
				 * apothikeuei tis times sthn vash afou tis elen3ei prwta
				 */
				String nameValue=name.getText();
				String surnameValue=surname.getText();
				String usernameValue=username.getText();
				String passValue=pass.getText();
				String pass2Value=pass2.getText();
				String oximaValue=oximataBox.getSelectedItem().toString();
				String action;
				if(checkData(nameValue,surnameValue,passValue,pass2Value)){
					if(id==0)
						action="insert";
					else
						action="update";
					save(nameValue,surnameValue,usernameValue,passValue,oximaValue,action);
				}
			}
		});
		saveButton.setBounds(101, 167, 125, 40);
		getContentPane().add(saveButton);
		
		
		if(id!=0){ // an exei epilexthei i leitourgia tiw epe3ergasias tote pairnei ta stoixia tou odigou pros epe3ergasia
			getOdigoForEdit(id);
		}
		
	}