public void setCustomerID(JTable table) {
        DefaultTableModel modelTable = (DefaultTableModel) table.getModel();

        if (table.getSelectedRowCount() != 0) {
            customerID = Integer.parseInt(modelTable.getValueAt(table.convertRowIndexToModel(table.getSelectedRow()), 0).toString());
            frame.setVisible(false);
        } else {
            JOptionPane.showMessageDialog(frame, "Der skal vælges en kunde", "Fejlrapport", JOptionPane.WARNING_MESSAGE);
        }
    }