JPanel pal;
        public JPanel getGUI() {            // request focus            requestFocus();            final JPanel pop;            JPanel pal;            JTextField tf;            pop = PaletteHelper.createVerticalPanel(null);            if (rt != OMGraphic.RENDERTYPE_XY) {                tf = PaletteHelper.createTextEntry("lat", "" + llpts[0], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setLLCoordinate((JTextField) e.getSource(), 0);                    }                });                tf = PaletteHelper.createTextEntry("lon", "" + llpts[1], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setLLCoordinate((JTextField) e.getSource(), 1);                    }                });            } else {                tf = PaletteHelper.createTextEntry("x", "" + xypts[0], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setXYCoordinate((JTextField) e.getSource(), 0);                    }                });                tf = PaletteHelper.createTextEntry("y", "" + xypts[1], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setXYCoordinate((JTextField) e.getSource(), 1);                    }                });            }            if (rt == OMGraphic.RENDERTYPE_OFFSET) {                tf = PaletteHelper.createTextEntry("off_x", "" + xypts[0], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setXYCoordinate((JTextField) e.getSource(), 0);                    }                });                tf = PaletteHelper.createTextEntry("off_y", "" + xypts[1], pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setXYCoordinate((JTextField) e.getSource(), 1);                    }                });            } else if (rt == OMGraphic.RENDERTYPE_LATLON) {                tf = PaletteHelper.createTextEntry("R (km)", "" + radius, pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        JTextField jtf = (JTextField) e.getSource();                        float f = radius;                        try {                            f = Float.valueOf(jtf.getText().trim())                                    .floatValue();                        } catch (NumberFormatException ex) {                            return;                        }                        radius = f;                        System.out.println("TestLayer: radius=" + radius);                    }                });                tf = PaletteHelper.createTextEntry("nverts", "" + nsegs, pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        setSegs((JTextField) e.getSource());                    }                });            }            if (rt != OMGraphic.RENDERTYPE_LATLON) {                tf = PaletteHelper.createTextEntry("width", "" + width, pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        JTextField jtf = (JTextField) e.getSource();                        try {                            width = Integer.parseInt(jtf.getText().trim());                        } catch (NumberFormatException ex) {                            return;                        }                    }                });                tf = PaletteHelper.createTextEntry("height", "" + height, pop);                tf.addFocusListener(new FocusAdapter() {                    public void focusLost(FocusEvent e) {                        JTextField jtf = (JTextField) e.getSource();                        try {                            height = Integer.parseInt(jtf.getText().trim());                        } catch (NumberFormatException ex) {                            return;                        }                    }                });            }            // line color            makeColorBox(pop, "line", false);            // fill color            makeColorBox(pop, "fill", true);            // filled?            makeFillCheckBox(pop);            // add ok button            pop.add(getOKButton());            return pop;        }