pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill van Melle <bill.van.me...@gmail.com>
Subject Re: how to get handle on main window?
Date Mon, 20 Dec 2010 23:26:23 GMT
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.

2.  What if I'm not inside the code of a pivot component when I want access
to the top-level window?

View raw message