> Then I pass a null as > display, then got null pointer exception for display.
You need to pass the display that is passed to your startup() method. > Even only contains > these code in start up, it still opens a big pivot window, Make sure you don't have maximized="true" in your dialog markup.
