private Meeting getSelectedData(){
		selectedData = null;

        int[] selectedRow = table.getSelectedRows();
        int[] selectedColumns = table.getSelectedColumns();
        System.out.println(table.getSelectedColumn());
        
        //Fix for exeption når man trykker på kollonne 0
        if(table.getSelectedColumn() != 0) {
	
	        for (int i = 0; i < selectedRow.length; i++) {
	          for (int j = 0; j < selectedColumns.length; j++) {
	            selectedData = (Meeting) table.getValueAt(selectedRow[i], selectedColumns[j]);
	          }
	        }
	        System.out.println("Selected: " + selectedData);
	        if(selectedData != null){
	        	statusPane.setText(selectedData.toString());
	        }else{
	        	statusPane.setText("No meeting selected");
	        }
			return selectedData;
        }
        return null;
	}