Merge pull request #96 from greboid/window-textframe

Store TextFrames not Windows in the Swing UI
Remove a couple of redundant casts.