public void deleteCommand()
    {
        try{
            int choice = JOptionPane.showConfirmDialog(rootPane, "Are you sure you want to delete " + currentRunway.getId() + "?"
                    + "\n This will also delete all glider and winch positions associated with this runway.",
                    "Delete Runway", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
            if (choice == 0){
                DatabaseUtilities.DatabaseEntryDelete.DeleteEntry(currentRunway);
                objectSet.clearRunway();
                JOptionPane.showMessageDialog(rootPane, currentRunway.toString() + " successfully deleted.");
                parent.update("2");
                this.dispose();
            }
        }catch (ClassNotFoundException e2) {
            JOptionPane.showMessageDialog(rootPane, "Error: No access to database currently. Please try again later.", "Error", JOptionPane.INFORMATION_MESSAGE);
        }catch (Exception e3) {

        }
    }