public void loadFromFile(File f) {
		try {
			ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream(f));
			Osoba osoba = null;
			while((osoba = (Osoba) inputStream.readObject()) != null){
				data.addElement(osoba);
			}
			inputStream.close();
			fireTableDataChanged();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (EOFException e) {
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		
	}