Use the Flood Fill tool to fill a contiguous area of empty cells or identical tiles with a selected tile.
Select the Flood Fill tool from the toolbar, or press its shortcut key G.
Select a tile from the Tile Palette window.
At this point, you have two options depending on what you want to do: