Do not worry if glass material looks black or very dark in material editor preview, it's perfectly normal. It's hapenning because preview object's scale usually doesn't match with scale the material is prepared for. Once you will assign that material to your object and render, it should look just fine (if your object and scene are proper scaled, of course).