Factory added, main use would be constructing Swing objects inside constructors without throwing exceptions