An instance of the frame class should be never created directly. Use getInstance instead, to receive a frame type specific instance.
A generic frame object may be used for placeholder purposes only. Never apply a generic frame to a file, the result is declared as unpredictable and a subject to change.