Re: [OpenMap Users] SHISPlugIn and SimpleHttpServer

From: Don Dietrick <>
Date: Mon, 22 Aug 2005 10:15:20 -0400

Hi Mariusz,

On Aug 21, 2005, at 9:35 AM, Mariusz Chmielewski wrote:

> I ve got 3 issues concerning the openmap framework:
> 1. in properties file I use Polish letters and on the OpenMap panel
> those names are shown as rectangles ( i use the UTF-8 encoding) but
> the
> OM seems to omit it.

This is probably more of a Java problem than an OpenMap one. We do
have a bunch of Polish properties files in the package used by the
internationalization mechanism in OpenMap, so I know it's possible to
display Polish letters.

> 2. I finally used the SHISPlugIn and SimpleHttpServer to show
> images but
> when i use the navigation pane i get this.
> *** ERROR ***
> LayerWorker.construct(): java.lang.RuntimeException: JOptionPane:
> parentComponent does not have a valid parent
> *************
> java.lang.RuntimeException: JOptionPane: parentComponent does not
> have a
> valid parent
> at javax.swing.JOptionPane.createInternalFrame(Unknown Source)
> at javax.swing.JOptionPane.showInternalOptionDialog(Unknown Source)
> at javax.swing.JOptionPane.showInternalMessageDialog(Unknown
> Source)
> at javax.swing.JOptionPane.showInternalMessageDialog(Unknown
> Source)
> at
> com.bbn.openmap.InformationDelegator.displayMessage
> (
> at
> com.bbn.openmap.InformationDelegator.requestMessage
> (
> at com.bbn.openmap.Layer.fireRequestMessage(
> at com.bbn.openmap.Layer.fireRequestMessage(
> at
> com.bbn.openmap.plugin.WebImagePlugIn.getRectangle
> (
> at com.bbn.openmap.plugin.PlugInLayer.prepare(
> at
> com.bbn.openmap.layer.policy.StandardRenderPolicy.prepare
> (
> at
> com.bbn.openmap.layer.OMGraphicHandlerLayer$LayerWorker.construct
> (
> at com.bbn.openmap.util.SwingWorker$
> at Source)
> Overview|Layer: repaint(tm=0, x=0, y=0, width=220, height=100)
> what is the problem can anyone tell me.
> I suppose to add that i am using my own layer pane based on the JTree
> and the whole openmap app is placed on one of the 3 JTabbedPanes.

Maybe the static Environment class isn't being told it's running in
an applet? I'd look at the to make sure
you are doing the same things in your applet that are being done there.

> 3 issue. How to present the same map on three different
> JTabbedPanes, i
> am asking becouse if i try to add the MabBean to another pane - the
> first one disapears and i can see the last one added??

You can't. Swing components can only have one parent. You'll need
multiple copies. Layers can only be attached to one MapBean, too.
You can come up with some workarounds for this limitation if the
projections (including the sizes) of the MapBeans are the same.

- Don

Don Dietrick,
BBN Technologies, Cambridge, MA

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Aug 22 2005 - 10:16:27 EDT

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