This applet is a demonstration of how the occupation index of electrons changes for the gas inside a white dwarf star as a function of density, temperature and composition (controlled by sliders). The applet also illustrates the concept of relativistic degeneracy by marking energies at which the electrons can be considered relativistic.