private void updateOptions()
    {
        options = new ArrayList();
        try
        {
        options.add(getIndoorText());
        options.add(getOutdoorText());
        }
        catch(DataFormatException e)
        {
            //JOptionPane.showMessageDialo(frame,"input error",e.getMessage());
        }
        BookingOptions[] tempOptions = new BookingOptions[2];
        try
        {
            tempOptions[0]=getIndoorText();
        } catch (DataFormatException ex)
        {
            Logger.getLogger(OptionsGui.class.getName()).log(Level.SEVERE, null, ex);
        }
        try
        {
            tempOptions[1]=getOutdoorText();
        } catch (DataFormatException ex)
        {
            Logger.getLogger(OptionsGui.class.getName()).log(Level.SEVERE, null, ex);
        }
        try
        {
            bom.updateAll(tempOptions);
        } catch (SQLException ex)
        {
            Logger.getLogger(OptionsGui.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }