} else if (command.equals("palette")) {
} else if ("palette".equals(command)) {
    public void actionPerformed(ActionEvent event) {        String command = event.getActionCommand();        if (command.equals("paint")) {            setCurrentPointerState(PS_PAINT);            resetBrush();        } else if (command.equals("erase")) {            setCurrentPointerState(PS_ERASE);            resetBrush();        } else if (command.equals("point")) {            setCurrentPointerState(PS_POINT);            resetBrush();        } else if (command.equals("pour")) {            setCurrentPointerState(PS_POUR);            resetBrush();        } else if (command.equals("eyed")) {            setCurrentPointerState(PS_EYED);            resetBrush();        } else if (command.equals("marquee")) {            setCurrentPointerState(PS_MARQUEE);            resetBrush();        } else if (command.equals("move")) {            setCurrentPointerState(PS_MOVE);            resetBrush();        } else if (command.equals("moveobject")) {            setCurrentPointerState(PS_MOVEOBJ);            resetBrush();        } else if (command.equals("palette")) {            if (currentMap != null) {                if (tilePaletteDialog == null) {                    tilePaletteDialog =                        new TilePaletteDialog(this, currentMap);                }                tilePaletteDialog.setVisible(true);            }        } else if (command.equals("tileInstanceProperties")) {            if (currentMap != null) {                tileInstancePropertiesDialog.setVisible(true);            }        } else {            handleEvent(event);        }    }