editor.setBrush(new CustomBrush(e.getTileRegion()));
editor.setBrush(MapEditor.TOOL_PAINT, new CustomBrush(e.getTileRegion())); editor.setCurrentBrush(MapEditor.TOOL_PAINT);
    public void tileRegionSelected(TileRegionSelectionEvent e) {        editor.setBrush(new CustomBrush(e.getTileRegion()));    }