public OximataList() {
		/*
		 * parathiro me thn lista twn oximatwn
		 */
		con = new Mysql();
		setTitle("Lista Oximatwn");
		/* vgazei to para8uro sto kedro tis othonis me diastaseis 350x400 */
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		this.setBounds(dim.width/2-175, dim.height/2-200, 350, 400);
		/*--------------*/
		this.setResizable(false);
		getContentPane().setBackground(Color.WHITE);
		getContentPane().setLayout(null);
		
		listModel = new DefaultListModel<String>();
		oximataList = new JList<String>(listModel);
		getContentPane().add(oximataList);
		
		JScrollPane scrollPane = new JScrollPane(oximataList);
		scrollPane.setBounds(0, 0, 350, 340);
		getContentPane().add(scrollPane);
		
		JButton editButton = new JButton("Epe3ergasia");
		editButton.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				try{
					/*
					 * anoigei to parathiro epe3ergasias gia to epilegmeno oxima
					 */
					OximataAdd frame = new OximataAdd(Integer.parseInt(oximataList.getSelectedValue().toString()));
					frame.setVisible(true);
				}catch(Exception e){
					e.printStackTrace();
				}
			}
		});
		editButton.setBounds(0, 338, 115, 34);
		getContentPane().add(editButton);
		
		JButton deleteButton = new JButton("Delete");
		deleteButton.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				/*
				 * diagrafei to epilegmeno oxima epeita apo erwthsh
				 */
				int dialogResult = JOptionPane.showConfirmDialog (null, "Thelete sigoura na diagrapsete to sigkekrimeno oxima?","Delete",JOptionPane.YES_NO_OPTION);
				if(dialogResult == JOptionPane.YES_OPTION){
					delete(Integer.parseInt(listModel.get(oximataList.getSelectedIndex())),oximataList.getSelectedIndex());
				}
			}
		});
		deleteButton.setBounds(115, 338, 115, 34);
		getContentPane().add(deleteButton);
		
		JButton mapButton = new JButton("Map");
		mapButton.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				/*
				 * anoigei ton xarti me thn topothesia tou oximatos
				 */
				seeOnMap(Integer.parseInt(listModel.get(oximataList.getSelectedIndex())));
			}
		});
		mapButton.setBounds(230, 338, 115, 34);
		getContentPane().add(mapButton);
		
		addOximata();
		
		
	}