Please show the code for DisplayWindow (or at least the constructor that is called on line 12), and the code for the FileTree constructor ditto. If either of those causes (directly or indirectly) a call to refresh() then this will happen before any value is assigned to window on line 12.
JamesCherrill
Posting Genius
6,370 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073