Put back AWT for getting DPI.