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