public void create_menu(JMenuBar menu_bar) {

        JMenuItem menu_item;
        JCheckBoxMenuItem checkbox_menu_item;
        JRadioButtonMenuItem radio_button_menu_item;

        // Hmmm... code re-use? This looks more like code polycopy...

//        // define the "Avionics" menu
//        JMenu xhsi_avionics_menu = new JMenu("Avionics");
//        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_AVIONICS_POWER);
//        checkbox_menu_item.addActionListener(this);
//        checkbox_menu_item.setSelected(true);
//        xhsi_avionics_menu.add(checkbox_menu_item);
//        // keep a reference
//        this.checkbox_avionics_power = checkbox_menu_item;
//
//        // add the "Avionics" menu to the menubar
//        menu_bar.add(xhsi_avionics_menu);


        // define the "Transponder" menu
        JMenu xhsi_xpdr_menu = new JMenu("Transponder");

        ButtonGroup xpdr_group = new ButtonGroup();

        // define the menu items, and add them to the "Transponder" menu
        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_XPDR_OFF);
        radio_button_menu_item.setToolTipText("Transponder powered off");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        xpdr_group.add(radio_button_menu_item);
        xhsi_xpdr_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_xpdr_off = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_XPDR_STBY);
        radio_button_menu_item.setToolTipText("Transponder powered on, but not functioning");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        xpdr_group.add(radio_button_menu_item);
        xhsi_xpdr_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_xpdr_stby = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_XPDR_ON);
        radio_button_menu_item.setToolTipText("Transponder on");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        xpdr_group.add(radio_button_menu_item);
        xhsi_xpdr_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_xpdr_on = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_XPDR_TA);
        radio_button_menu_item.setToolTipText("Transponder on; TCAS will issue Traffic Alerts");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        xpdr_group.add(radio_button_menu_item);
        xhsi_xpdr_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_xpdr_ta = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_XPDR_TARA);
        radio_button_menu_item.setToolTipText("Transponder on; TCAS will issue Traffic Alerts (Resolution Alerts are inoperative)");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        xpdr_group.add(radio_button_menu_item);
        xhsi_xpdr_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_xpdr_tara = radio_button_menu_item;

        // add the "Transponder" menu to the menubar
        menu_bar.add(xhsi_xpdr_menu);


        // define the "Source" menu
        JMenu xhsi_source_menu = new JMenu("Source");

        ButtonGroup source_group = new ButtonGroup();

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_SOURCE_NAV1);
        radio_button_menu_item.setToolTipText("HSI follows NAV1");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        source_group.add(radio_button_menu_item);
        xhsi_source_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_source_nav1 = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_SOURCE_NAV2);
        radio_button_menu_item.setToolTipText("HSI follows NAV2");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        source_group.add(radio_button_menu_item);
        xhsi_source_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_source_nav2 = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_SOURCE_FMC);
        radio_button_menu_item.setToolTipText("HSI follows GPS/FMS/FMC");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        source_group.add(radio_button_menu_item);
        xhsi_source_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_source_fmc = radio_button_menu_item;

        // add the "Source" menu to the menubar
        menu_bar.add(xhsi_source_menu);


        // define the "Radio1" menu
        JMenu xhsi_radio1_menu;

        ButtonGroup radio1_group = new ButtonGroup();

        // define the menu items, and add them to the "Radio1" menu
        xhsi_radio1_menu = new JMenu("Radio1");

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_RADIO1_ADF1);
        radio_button_menu_item.setToolTipText("Display bearing lines or pointer arrows for ADF1");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        radio1_group.add(radio_button_menu_item);
        xhsi_radio1_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio1_adf = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.LABEL_RADIO1_OFF);
        radio_button_menu_item.setToolTipText("Don't display bearing lines or pointer arrows for Radio1");
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_RADIO1_OFF);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        radio1_group.add(radio_button_menu_item);
        xhsi_radio1_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio1_off = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_RADIO1_NAV1);
        radio_button_menu_item.setToolTipText("Display bearing lines or pointer arrows for NAV1");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        radio1_group.add(radio_button_menu_item);
        xhsi_radio1_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio1_nav = radio_button_menu_item;

        xhsi_radio1_menu.addSeparator();

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_RADIO1_DME_ARC);
        checkbox_menu_item.setToolTipText("Draw a circle around NAV1's DME");
        checkbox_menu_item.addActionListener(this);
        xhsi_radio1_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way from DMEArcDialog.java
        checkbox_dme1_arc = checkbox_menu_item;

        xhsi_radio1_menu.addSeparator();

        menu_item = new JMenuItem(XHSISettings.ACTION_SYNC_CRS1);
        menu_item.setToolTipText("Set NAV1 CRS to LOC/ILS frontcourse or Direct-To VOR course");
        menu_item.addActionListener(this);
        xhsi_radio1_menu.add(menu_item);

        // add the "Radio1" menu to the menubar
        menu_bar.add(xhsi_radio1_menu);


        // define the "Radio2" menu
        JMenu xhsi_radio2_menu;

        ButtonGroup radio2_group = new ButtonGroup();

        // define the menu items, and add them to the "Radio2" menu
        xhsi_radio2_menu = new JMenu("Radio2");

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_RADIO2_ADF2);
        radio_button_menu_item.setToolTipText("Display bearing lines or pointer arrows for ADF2");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        radio2_group.add(radio_button_menu_item);
        xhsi_radio2_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio2_adf = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.LABEL_RADIO2_OFF);
        radio_button_menu_item.setToolTipText("Don't display bearing lines or pointer arrows for Radio2");
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_RADIO2_OFF);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        radio2_group.add(radio_button_menu_item);
        xhsi_radio2_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio2_off = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_RADIO2_NAV2);
        radio_button_menu_item.setToolTipText("Display bearing lines or pointer arrows for NAV2");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        radio2_group.add(radio_button_menu_item);
        xhsi_radio2_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_radio2_nav = radio_button_menu_item;

        xhsi_radio2_menu.addSeparator();

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_RADIO2_DME_ARC);
        checkbox_menu_item.setToolTipText("Draw a circle around NAV2's DME");
        checkbox_menu_item.addActionListener(this);
        xhsi_radio2_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way from DMEArcDialog.java
        checkbox_dme2_arc = checkbox_menu_item;

        xhsi_radio2_menu.addSeparator();

        menu_item = new JMenuItem(XHSISettings.ACTION_SYNC_CRS2);
        menu_item.setToolTipText("Set NAV1 CRS to LOC/ILS frontcourse or Direct-To VOR course");
        menu_item.addActionListener(this);
        xhsi_radio2_menu.add(menu_item);

        // add the "Radio2" menu to the menubar
        menu_bar.add(xhsi_radio2_menu);


        // define the "Mode" menu
        JMenu xhsi_mode_menu = new JMenu("Mode");

        boolean airbus_modes = XHSIPreferences.get_instance().get_airbus_modes();

        ButtonGroup submode_group = new ButtonGroup();

        // define the menu items, and add them to the "Mode" menu
        radio_button_menu_item = new JRadioButtonMenuItem(airbus_modes ? XHSISettings.LABEL_SUBMODE_ROSE_ILS : XHSISettings.LABEL_SUBMODE_APP);
        radio_button_menu_item.setToolTipText(XHSISettings.ACTION_SUBMODE_APP + " : HSI with CDI and GS");
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_SUBMODE_APP);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        submode_group.add(radio_button_menu_item);
        xhsi_mode_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_submode_app = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(airbus_modes ? XHSISettings.LABEL_SUBMODE_ROSE_VOR : XHSISettings.LABEL_SUBMODE_VOR);
        radio_button_menu_item.setToolTipText(XHSISettings.ACTION_SUBMODE_VOR + " HSI with CDI");
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_SUBMODE_VOR);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        submode_group.add(radio_button_menu_item);
        xhsi_mode_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_submode_vor = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(airbus_modes ? XHSISettings.LABEL_SUBMODE_ROSE_NAV : XHSISettings.LABEL_SUBMODE_MAP);
        radio_button_menu_item.setToolTipText(XHSISettings.ACTION_SUBMODE_MAP);
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_SUBMODE_MAP);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        submode_group.add(radio_button_menu_item);
        xhsi_mode_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_submode_map = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(airbus_modes ? XHSISettings.LABEL_SUBMODE_ARC : XHSISettings.LABEL_SUBMODE_NAV);
        radio_button_menu_item.setToolTipText(XHSISettings.ACTION_SUBMODE_NAV);
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_SUBMODE_NAV);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        submode_group.add(radio_button_menu_item);
        xhsi_mode_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_submode_nav = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(airbus_modes ? XHSISettings.LABEL_SUBMODE_PLAN : XHSISettings.LABEL_SUBMODE_PLN);
        radio_button_menu_item.setToolTipText(XHSISettings.ACTION_SUBMODE_PLN);
        radio_button_menu_item.setActionCommand(XHSISettings.ACTION_SUBMODE_PLN);
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        submode_group.add(radio_button_menu_item);
        xhsi_mode_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_submode_pln = radio_button_menu_item;

        xhsi_mode_menu.addSeparator();

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.LABEL_MODE_CENTERED);
        checkbox_menu_item.setToolTipText("Centered / Expanded");
        checkbox_menu_item.setActionCommand(XHSISettings.ACTION_MODE_CENTERED);
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setMnemonic(KeyEvent.VK_C);
        checkbox_menu_item.setSelected(false);
        checkbox_menu_item.setVisible( ! airbus_modes );
        xhsi_mode_menu.add(checkbox_menu_item);
        // keep a reference
        this.checkbox_mode_centered = checkbox_menu_item;

        // add the "Mode" menu to the menubar
        menu_bar.add(xhsi_mode_menu);


        // define the "Range" menu
        JMenu xhsi_range_menu = new JMenu("Range");

        ButtonGroup range_group = new ButtonGroup();

        for (int i=0; i<this.zoomin_range_list.length; i++) {
            radio_button_menu_item = new JRadioButtonMenuItem( this.zoomin_range_list[i] );
            radio_button_menu_item.setToolTipText(this.zoomin_range_list[i] + " NM");
            radio_button_menu_item.addActionListener(this);
            radio_button_menu_item.setSelected(false);
            range_group.add(radio_button_menu_item);
            xhsi_range_menu.add(radio_button_menu_item);
            radio_button_range[i] = radio_button_menu_item;
        }

        xhsi_range_menu.addSeparator();

        for (int i=0; i<this.range_list.length; i++) {
            radio_button_menu_item = new JRadioButtonMenuItem( this.range_list[i] );
            radio_button_menu_item.setToolTipText(this.range_list[i] + " NM");
            radio_button_menu_item.addActionListener(this);
            if ( i==this.map_range_index )
                // initial default
                radio_button_menu_item.setSelected(true);
            else
                radio_button_menu_item.setSelected(false);
            range_group.add(radio_button_menu_item);
            xhsi_range_menu.add(radio_button_menu_item);
            radio_button_range[i+7] = radio_button_menu_item;
        }

//        xhsi_range_menu.addSeparator();
//
//        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.LABEL_ZOOMIN);
//        checkbox_menu_item.setToolTipText("Zoom in (\u00F7100)");
//        checkbox_menu_item.setActionCommand(XHSISettings.ACTION_ZOOMIN);
//        checkbox_menu_item.addActionListener(this);
//        xhsi_range_menu.add(checkbox_menu_item);
//        // keep a reference
//        this.checkbox_map_zoomin = checkbox_menu_item;

        // add the "Range" menu to the menubar
        menu_bar.add(xhsi_range_menu);


        // define the "Symbols" menu
        JMenu xhsi_symbols_menu = new JMenu("Symbols");

        // define the menu items, and add them to the "Symbols" menu
        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_ARPT);
        checkbox_menu_item.setToolTipText("Show Airports");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_arpt = checkbox_menu_item;

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_WPT);
        checkbox_menu_item.setToolTipText("Shox Fixes");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_wpt = checkbox_menu_item;

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_VOR);
        checkbox_menu_item.setToolTipText("Show VORs");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_vor = checkbox_menu_item;

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_NDB);
        checkbox_menu_item.setToolTipText("Show NDBs");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_ndb = checkbox_menu_item;

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_TFC);
        checkbox_menu_item.setToolTipText("Show Traffic");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_tfc = checkbox_menu_item;

        xhsi_symbols_menu.addSeparator();

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_POS);
        checkbox_menu_item.setToolTipText("Draw bearing lines instead of pointer arrows)");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_pos = checkbox_menu_item;

        checkbox_menu_item = new JCheckBoxMenuItem(XHSISettings.ACTION_SYMBOLS_SHOW_DATA);
        checkbox_menu_item.setToolTipText("Show altitudes for FMS waypoints");
        checkbox_menu_item.addActionListener(this);
        checkbox_menu_item.setSelected(true);
        xhsi_symbols_menu.add(checkbox_menu_item);
        // keep a reference to the checkbox to set or clear it in a non-standard way
        this.checkbox_symbols_show_data = checkbox_menu_item;

        // add the "Symbols" menu to the menubar
        menu_bar.add(xhsi_symbols_menu);

        // define the "Holding" menu
        JMenu hsi_holding_menu = new JMenu("Holding");

        ButtonGroup holding_group = new ButtonGroup();

        // define the menu items, and add them to the "Holding" menu
        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_HOLDING_HIDE);
        radio_button_menu_item.setToolTipText("Hide the holding");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        hsi_holding_menu.add(radio_button_menu_item);
        holding_group.add(radio_button_menu_item);
        // keep a reference to the radiobutton to set or clear it in a non-standard way from HoldingDialog.java
        radiobutton_holding_hide = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_HOLDING_SHOW);
        radio_button_menu_item.setToolTipText("Draw a holding");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        hsi_holding_menu.add(radio_button_menu_item);
        holding_group.add(radio_button_menu_item);
        // keep a reference to the radiobutton to set or clear it in a non-standard way from HoldingDialog.java
        radiobutton_holding_show = radio_button_menu_item;

        // add the "Holding" menu to the menubar
        menu_bar.add(hsi_holding_menu);


        // define the "Fix" menu
        JMenu hsi_fix_menu = new JMenu("Fix");

        ButtonGroup fix_group = new ButtonGroup();

        // define the menu items, and add them to the "Fix" menu
        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_FIX_HIDE);
        radio_button_menu_item.setToolTipText("Hide the CDU FIX");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        hsi_fix_menu.add(radio_button_menu_item);
        fix_group.add(radio_button_menu_item);
        // keep a reference to the radiobutton to set or clear it in a non-standard way from FixDialog.java
        radiobutton_fix_hide = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_FIX_SHOW);
        radio_button_menu_item.setToolTipText("Draw a CDU FIX");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        hsi_fix_menu.add(radio_button_menu_item);
        fix_group.add(radio_button_menu_item);
        // keep a reference to the radiobutton to set or clear it in a non-standard way from FixDialog.java
        radiobutton_fix_show = radio_button_menu_item;

        // add the "Fix" menu to the menubar
        menu_bar.add(hsi_fix_menu);


        // define the "Fuel" menu
        JMenu xhsi_fuel_menu = new JMenu("Fuel");

        menu_item = new JMenuItem(XHSISettings.ACTION_ESTIMATE_FUEL_CAPACITY);
        menu_item.setToolTipText("Estimate the aircraft's total fuel capacity");
        menu_item.addActionListener(this);
        xhsi_fuel_menu.add(menu_item);

        menu_item = new JMenuItem(XHSISettings.ACTION_SET_FUEL_CAPACITY);
        menu_item.setToolTipText("Set the aircraft's total fuel capacity manually");
        menu_item.addActionListener(this);
        xhsi_fuel_menu.add(menu_item);

        xhsi_fuel_menu.addSeparator();

        menu_item = new JMenuItem(XHSISettings.ACTION_RESET_MAX_FF);
        menu_item.setToolTipText("Reset the range of the Fuel Flow dials");
        menu_item.addActionListener(this);
        xhsi_fuel_menu.add(menu_item);

        // add the "Fuel" menu to the menubar
        menu_bar.add(xhsi_fuel_menu);


        // define the "MFD" menu
        JMenu xhsi_mfd_menu = new JMenu("MFD");

        ButtonGroup mfd_group = new ButtonGroup();

//        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_MFD_TAXI_CHART);
//        radio_button_menu_item.setToolTipText("Airport Taxi Chart");
//        radio_button_menu_item.addActionListener(this);
//        radio_button_menu_item.setSelected(false);
//        mfd_group.add(radio_button_menu_item);
//        xhsi_mfd_menu.add(radio_button_menu_item);
//        // keep a reference
//        this.radio_button_mfd_taxi = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_MFD_ARPT_CHART);
        radio_button_menu_item.setToolTipText("Airport Chart");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(true);
        mfd_group.add(radio_button_menu_item);
        xhsi_mfd_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_mfd_arpt = radio_button_menu_item;

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_MFD_FPLN);
        radio_button_menu_item.setToolTipText("Flight Plan");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        mfd_group.add(radio_button_menu_item);
        xhsi_mfd_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_mfd_fpln = radio_button_menu_item;

        xhsi_mfd_menu.addSeparator();

        radio_button_menu_item = new JRadioButtonMenuItem(XHSISettings.ACTION_MFD_LOWER_EICAS);
        radio_button_menu_item.setToolTipText("Lower EICAS");
        radio_button_menu_item.addActionListener(this);
        radio_button_menu_item.setSelected(false);
        mfd_group.add(radio_button_menu_item);
        xhsi_mfd_menu.add(radio_button_menu_item);
        // keep a reference
        this.radio_button_mfd_eicas = radio_button_menu_item;

        // add the "MFD" menu to the menubar
        menu_bar.add(xhsi_mfd_menu);


    }