Use setVisible(shown) instead.
See also isShown().
Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation