This paper explains how a popular, commerciallyavailable software package for solving partial-differentialequations (PDEs), as based on the finite-element method (FEM), can be configured to calculate, efficiently, the frequencies and fields of the whispering-gallery (WG) modes of axisymmetric dielectric resonators. The approach is traceable; it exploits the PDE-solver's ability to accept the definition of solutions to Maxwell's equations in so-called 'weak form'. Associated expressions and methods for estimating a WG mode's volume, filling factor(s) and, in the case of closed(open) resonators, its wall(radiation) loss, are provided. As no transverse approximation is imposed, the approach remains accurate even for quasitransverse-magnetic/electric modes of low, finite azimuthal mode order. The approach's generality and utility are demonstrated by modeling several non-trivial structures: (i) two different optical microcavities [one toroidal made of silica, the other an AlGaAs microdisk]; (ii) a 3rd-order sapphire:air Bragg cavity; (iii) two different cryogenic sapphire WG-mode resonators; both (ii) and (iii) operate in the microwave X-band. By fitting one of (iii) to a set of measured resonance frequencies, the dielectric constants of sapphire at liquid-helium temperature have been estimated.Mark Oxborrow was born near Salisbury, England, in 1967. He received a B.A. in physics from the University of Oxford in 1988, and a Ph.D. in theoretical condensed-matter physics from Cornell University in 1993; his thesis topic concerned randomtiling models of quasicrystals. During subsequent postdoctoral appointments at both the Niels Bohr Institute in Copenhagen and then back at Oxford, he investigated acoustic analogues of quantum wavechaos. In 1998, he joined the UK's National Physical Laboratory; his eclectic, project-based research work there to date has included the design and construction of ultra-frequency-stable microwave and optical oscillators, the development of single-photon sources, and the applications of carbon nanotubes to metrology.