This is similar to what happens during the lifetime of a star. Gravity pushes inward on the outer layers of the star (the green arrows). This is balanced by fusion energy coming from the hot core of the star (the red arrows). This balance between forces is what keeps the star from collapsing.