The average density of the Sun is only around 1.5 times that of water, so it should tell you something about how temperature can compensate for the effects of gravity; even at the core, which is around 150 times denser than water, the temperature is so high, it behaves as a fluid.