Re: [OpenMap Users] no display from HelloWorld example, OpenMap 4.6

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 20 Aug 2004 16:17:34 -0400

On Aug 20, 2004, at 4:08 PM, Bob Stine wrote:

> Don:
>  
> As you suggested, inserting a call to helloWorld.pack() immediately
> before the call to helloWorld.setVisible(true) solves the problem. 
> Thanks!

Oh, you know what? My version of HelloWorld doesn't have a
setVisible(true), I had updated it for the next release to call

             hello.pack();
             hello.show();

I probably did that to avoid the problem you described below.

Thanks for the feedback,

- Don


>  
> In the "for what it's worth" category: the display also happens
> more-or-less successfully if I comment out the line that adds the
> OMToolSet instance to the MapHander.  But then I don't get the tool
> kit bar at the top of the page.
>  
> A thread dump of the processes that were failing to display a window
> shows that the AWT thread is waiting on a lock in the
> Component.invalidate() method:
>  
> Full thread dump Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode):
> "AWT-EventQueue-0" prio=7 tid=0x02e2f348 nid=0x1d4 waiting for monitor
> entry [512f000..512fd8c]
>         at java.awt.Component.invalidate(Component.java:2117)
>         - waiting to lock <0x10504c08> (a
> java.awt.Component$AWTTreeLock)
>         at java.awt.Container.invalidate(Container.java:1038)
> <snip>
>  
> Cheers.
>
>
> ___
> Bob Stine
> bob_at_waltonstine.net
> "Let's roll!"  Todd Beamer, UA flight 93
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Aug 20 2004 - 16:17:43 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT