Hi there -
I do something very similar to this in my OpenMap app. What I've done is
override
public void setVisible(boolean visible) { ... }
in my custom layer which ultimately extends the OpenMap Layer class. When
this is called and visible is true, you create your popup window and show
it. When visible is false, you hide your popup. This approach seems to work
quite well for us.
If you are asking about actually creating a java Window, there are many
resources on the net for help with Swing and AWT. Just FYI...what I have
done is actually create a custom JDialog extension class (e.g. MyDialog)
which is able to take another custom JPanel extension class I created (e.g.
MyPanel) and put it into its content pane. This is done inside the MyDialog
constructor which takes a MyPanel as an argument and does this:
this.getContentPane().add(mypanel);
Then, you just basically call show() on the dialog after creating it and
passing your custom JPanel. There may be an easier way but I've found this
gives me the most flexibility.
- Chris
-----Original Message-----
From: Rajkumar Thirumalainambi [mailto:rajkumar@mail.arc.nasa.gov]
Sent: Wednesday, May 14, 2003 12:57 PM
To: openmap-users@bbn.com
Subject: [OpenMap Users] Pop-up window
Hi,
When I turn on a layer, I would like to get a pop-up window to feed input
data for the particular layer.
How I should create a popup window? I greatly appreciate your help.
Thank you
Regards
Rajkumar
-- [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 Wed May 14 15:59:25 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT