[OpenMap Users] Graphic elements not displaying

From: <charles.nagy@dmr.com.au>
Date: Mon Jan 12 2004 - 17:43:56 EST

Hi,

I am attempting to integrate the OpenMap classes into a Train Management
System that we maintain. Generally integrating the functionality into an
existing application has not proved too difficult, however I have struck a
problem that I hope you can help me with.

Firstly the application development environment is JDK1.3.03 and I am using
OpenMap4.5.4 A point to note is that the application is based on AWT. So
because of compatibility issues so I am forced to place the bufferedmapbean
into a Panel which in turn is placed into a Frame.

All seems to work fine except when I generate a new layer
programmatically. I am finding that if I add the layer as part of the panel
constructor it appears in the map. However when I add the same layer
outside of the panel constructor all appears normal except that it does not
display. I have noticed that when I undock the toolbar a repaint of the
map occurs and the graphics that was previously not visible suddenly
appears.

Obviously I am missing something but cannot see what! Do you have any
ideas.

I am attaching some test code that exhibits the problem. The class
tmatdsbl calls a cut down version of the RouteLayer class that is shipped
with the crew example

(See attached file: RouteLayer.java)(See attached file: tmatdsbl.java)

I look forward to any suggestions

Many thanks
Charles Nagy

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Jan 12 18:48:03 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT