Attached is a small path to FigTextEditor.
As can be seen in the patch, I've simply changed the constructor to search up the component hierarchy for an instance of RootPaneContainer instead of JFrame (JFrame implements the RootPaneContainer interface).
This allows the layeredPane to be located correctly in situations where GEF may be embedded such as within a JApplet or within SWT using the SWT_AWT bridge.