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

From: Bob Stine <bob_at_waltonstine.net>
Date: Fri, 20 Aug 2004 13:08:53 -0700 (PDT)

Don:
 
As you suggested, inserting a call to helloWorld.pack() immediately before the call to helloWorld.setVisible(true) solves the problem. Thanks!
 
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


--
[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:09:52 EDT

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