public AddEditRunwayFrame(Runway editRunway, boolean isEditEntry) {
        objectSet = CurrentDataObjectSet.getCurrentDataObjectSet();
        //setupUnits();

        if (!isEditEntry || editRunway == null){
            editRunway = new Runway("", 0, "", 0, "");
        }
        this.isEditEntry = isEditEntry;
        currentRunway = editRunway;

        setTitle("Runway");
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setBounds(100, 100, 450, 300);
        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        contentPane.setLayout(new BorderLayout(0, 0));
        setContentPane(contentPane);

        JPanel panel = new JPanel();
        panel.setLayout(null);
        contentPane.add(panel, BorderLayout.CENTER);

        JLabel nameLabel = new JLabel("Name:");
        nameLabel.setBounds(10, 14, 106, 14);
        panel.add(nameLabel);

        JLabel magneticHeadingLabel = new JLabel("Magnetic Heading:");
        magneticHeadingLabel.setBounds(10, 39, 106, 14);
        panel.add(magneticHeadingLabel);

        //JLabel altitudeLabel = new JLabel("Altitude:");

        //altitudeLabel.setBounds(10, 64, 106, 14);
        //panel.add(altitudeLabel);

        magneticHeadingField = new JTextField();
        if (isEditEntry)
        {
            magneticHeadingField.setText(String.valueOf(currentRunway.getMagneticHeading()));
        }
        magneticHeadingField.setColumns(10);
        magneticHeadingField.setBounds(140, 36, 200, 20);
        panel.add(magneticHeadingField);

        nameField = new JTextField(currentRunway.getName());
        nameField.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
        nameField.setColumns(10);
        nameField.setBounds(140, 11, 200, 20);
        panel.add(nameField);

        /*altitudeField = new JTextField();
        if (isEditEntry)
        {
            altitudeField.setText(String.valueOf(editRunway.getAltitude() * UnitConversionRate.convertDistanceUnitIndexToFactor(runwayAltitudeUnitsID)));
        }
        altitudeField.setColumns(10);
        altitudeField.setBounds(140, 61, 200, 20);
        panel.add(altitudeField);*/

        JButton submitButton = new JButton("Submit");
        submitButton.setBounds(0, 229, 89, 23);
        submitButton.setBackground(new Color(200,200,200));
        panel.add(submitButton);
        submitButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent event) {
            submitData();
        }
        });

        JButton deleteButton = new JButton("Delete");
        deleteButton.setEnabled(isEditEntry);
        deleteButton.setBounds(90, 229, 89, 23);
        deleteButton.setBackground(new Color(200,200,200));
        panel.add(deleteButton);
        deleteButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent event) {
            deleteCommand();
        }
        });

        JButton clearButton = new JButton("Clear");
        clearButton.setBounds(180, 229, 89, 23);
        clearButton.setBackground(new Color(200,200,200));
        panel.add(clearButton);
        clearButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent event) {
            clearData();
        }
        });

        JButton cancelButton = new JButton("Cancel");
        cancelButton.setBounds(270, 229, 89, 23);
        cancelButton.setBackground(new Color(200,200,200));
        panel.add(cancelButton);
        cancelButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent event) {
            dispose();
        }
        });

        JLabel requiredNoteLabel = new JLabel("All fields are required");
        requiredNoteLabel.setBounds(10, 210, 200, 14);
        panel.add(requiredNoteLabel);
        
        JLabel parentAirfieldLabel = new JLabel();
        try{
            parentAirfieldLabel .setText("Parent Airfield: " + objectSet.getCurrentAirfield().getDesignator());
        }catch (Exception e){
            
        }
        parentAirfieldLabel.setBounds(10, 100, 220, 14);
        panel.add(parentAirfieldLabel);
        
        JLabel magneticHeadingUnitsLabel = new JLabel("degrees");
        magneticHeadingUnitsLabel.setBounds(350, 39, 60, 14);
        panel.add(magneticHeadingUnitsLabel);
        
        //runwayAltitudeUnitsLabel.setBounds(350, 64, 46, 14);
        //panel.add(runwayAltitudeUnitsLabel);
    }