The minecraft stained glass recipe is fairly simple. All you need are eight glass blocks (craftable by smelting sand blocks) and one item of any colored dye. Place the eight blocks around the perimeter of the crafting grid, then place the dye in the middle. Boom! You got yourself eight stained glass blocks.
To make stained glass panes, you need to take your stained glass blocks and place six of them horizontally across the bottom of the crafting grid. This means that from eight blocks of plain glass and one piece of dye, you can create sixteen panes of stained minecraft glass.