resList.setSelectedIndex(getDistanceGridResolution());
    public Component getGUI() {        JPanel panel = new JPanel();        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        panel.setLayout(gridbag);        JCheckBox setZonesButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,                "setZonesButton",                "Show UTM Zone Grid"), showZones);        setZonesButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                JCheckBox button = (JCheckBox) ae.getSource();                showZones = button.isSelected();                doPrepare();            }        });        c.gridy = 0;        c.anchor = GridBagConstraints.WEST;        gridbag.setConstraints(setZonesButton, c);        panel.add(setZonesButton);        JCheckBox set100kGridButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,                "set100kGridButton",                "Show 100Km Distance Grid"), show100kGrid);        set100kGridButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                JCheckBox button = (JCheckBox) ae.getSource();                show100kGrid = button.isSelected();                doPrepare();            }        });        c.gridy = 1;        gridbag.setConstraints(set100kGridButton, c);        panel.add(set100kGridButton);        JCheckBox setLabelsButton = new JCheckBox(i18n.get(UTMGridPlugIn.class,                "setLabelsButton",                "Show Zone Labels"), showLabels);        setLabelsButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                JCheckBox button = (JCheckBox) ae.getSource();                showLabels = button.isSelected();                doPrepare();            }        });        c.gridy = 2;        gridbag.setConstraints(setLabelsButton, c);        panel.add(setLabelsButton);        JPanel resPanel = PaletteHelper.createPaletteJPanel(i18n.get(UTMGridPlugIn.class,                "resPanel",                "Distance Grid Units"));        String[] resStrings = {                i18n.get(UTMGridPlugIn.class, "resStrings.noGrid", " No Grid "),                i18n.get(UTMGridPlugIn.class,                        "resStrings.10000m",                        " 10,000 meter   "),                i18n.get(UTMGridPlugIn.class,                        "resStrings.1000m",                        " 1000 meter "),                i18n.get(UTMGridPlugIn.class, "resStrings.100m", " 100 meter "),                i18n.get(UTMGridPlugIn.class, "resStrings.10m", " 10 meter "),                i18n.get(UTMGridPlugIn.class, "resStrings.1m", " 1 meter ") };        JComboBox resList = new JComboBox(resStrings);        resList.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                JComboBox jcb = (JComboBox) e.getSource();                setDistanceGridResolution(jcb.getSelectedIndex());                doPrepare();            }        });        resPanel.add(resList);        c.gridy = 3;        c.anchor = GridBagConstraints.CENTER;        gridbag.setConstraints(resPanel, c);        panel.add(resPanel);        JButton utmGridColorButton = new JButton(i18n.get(UTMGridPlugIn.class,                "utmGridColorButton",                "Set UTM Grid Color"));        utmGridColorButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                Color tmpPaint = getNewPaint((Component) ae.getSource(),                        i18n.get(UTMGridPlugIn.class,                                "utmGridColorChooser",                                "Choose UTM Grid Color"),                        (Color) getUTMGridPaint());                if (tmpPaint != null) {                    setUTMGridPaint(tmpPaint);                    doPrepare();                }            }        });        c.gridy = 4;        gridbag.setConstraints(utmGridColorButton, c);        panel.add(utmGridColorButton);        JButton distGridColorButton = new JButton(i18n.get(UTMGridPlugIn.class,                "distGridColorButton",                "Set Distance Grid Color"));        distGridColorButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                Color tmpPaint = getNewPaint((Component) ae.getSource(),                        i18n.get(UTMGridPlugIn.class,                                "distanceGridColorChooser",                                "Choose Distance Grid Color"),                        (Color) getDistanceGridPaint());                if (tmpPaint != null) {                    setDistanceGridPaint(tmpPaint);                    doPrepare();                }            }        });        c.gridy = 5;        gridbag.setConstraints(distGridColorButton, c);        panel.add(distGridColorButton);        return panel;    }