LookandFeel must be set in headless state as window sizes will be affected