Question: what is the relationship between gravity and pressure in a nebula?
Answer: Gravity keeps the gas from evaporating into space, and pressure due to the star's high temperature and density keeps the ball from shrinking.