Re: [OpenMap Users] How to add a MapBean to a panel invisibly?

From: <BJGeraci@aol.com>
Date: Thu Jan 02 2003 - 17:23:16 EST

In a message dated 1/2/2003 3:57:32 PM Eastern Standard Time, dietrick@bbn.com writes:

>
> Did you try mapBean.setVisible(false) right after you
> create it, and
> then set it to be visible after the properties are parsed?

Yes. The line "mapBean.setVisible(false)" has no effect....

The way I'm doing it is:

  JRootPane rp = mapBean.getRootPane();
  OpenMapFrame omf = (OpenMapFrame) rp.getParent();
  omf.setVisible(false);

I have to hide the Frame associated with the parent of the MapBean.
Even though this works, the OpenMap frame shows up for a brief bit,
which is starting to be annoying.

-bj-
Bart J. Geraci
bjg@ModelSoftware.com
BJGeraci@aol.com

--
[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 Thu Jan 2 17:26:31 2003

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