The source code for getHostWindow() can be found here:

http://svn.apache.org/repos/asf/pivot/trunk/wtk/src/org/apache/pivot/wtk/Display.java

On Nov 17, 2010, at 12:28 AM, ChesStrategy wrote:

> 
> 
> Greg Brown wrote:
>> 
>> 
>> Sorry, we must have added that method for 2.0. You can still get access to
>> it in 1.5, though. Call getDisplayHost() on the display and then walk up
>> the AWT hierarchy until you find the root AWT Window. 
>> 
>> 
> 
> Could you just post your source; you mentioned that you were able to get it
> to work? Since I was not able to find getHostWindow() in java.awt.*. I tried
> the following and got an error when running my pivot application in eclipse:
> 
> 
> Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved
> compilation problem: 
>       The method getHostWindow() is undefined for the type
> ApplicationContext.DisplayHost
> 
>       at com.teamdl.spindle.Spindle.startup(Spindle.java:40)
>       at
> org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(DesktopApplicationContext.java:95)
>       at java.awt.Window.processEvent(Unknown Source)
>       at java.awt.Component.dispatchEventImpl(Unknown Source)
>       at java.awt.Container.dispatchEventImpl(Unknown Source)
>       at java.awt.Window.dispatchEventImpl(Unknown Source)
>       at java.awt.Component.dispatchEvent(Unknown Source)
>       at java.awt.EventQueue.dispatchEvent(Unknown Source)
>       at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>       at java.awt.EventDispatchThread.run(Unknown Source)
> 
> -- 
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/Setting-a-minimum-enforced-size-for-the-Display-tp1902028p1915459.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to