> 1. That returns a java.awt.Window, not org.apache.pivot.wtk.Window, so is > not suitable for passing to Sheet#open. I guess I asked the question wrong > -- I want a handle on the org.apache.pivot.wtk.Window that I opened at > startup. Or does that make sense? The whole hosting-window thing I still > find a bit unnatural. I guess I could do getDisplay().get(0) and cast it to > a Window.
You can call Component#getWindow() to get the top-level Pivot window. > 2. What if I'm not inside the code of a pivot component when I want access > to the top-level window? You'll either need to maintain a reference to the window somewhere, or maintain a reference to a component that is attached to the window. G
