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