From: Michael Bedward <michael.bedward@gm...> - 2013-01-28 10:33:42
Please send your questions to the list rather than to me personally.
> Thanks for your reply. I already use this link and successfully called shape
> file into program.
> I am using NetBeans IDE 7.2.1 now I want to call a shape with out JMapFrmae
> into my program can it is possible?
> I want to fix shape file into main frame.
I'm not sure if I understand your question, but if you mean can you
display shapefiles in a general Java / Swing application (not using
JMapFrame) the answer is yes.
JMapFrame is really just an ordinary JFrame with a few predefined
child components. The map display is handled by JMapPane:
(many of its methods are inherited from the AbstractMapPane base class).
JMapPane can be used in the same way that you use a JPanel. You can
put it in your own frame class or some other Swing container.
On the other hand, if you are developing a NetBeans platform
application, the answer is no. NetBeans GUI components are based on
Swing but have a separate API (e.g. TopComponent class instead of
JPanel). The GeoTools library does not provide support for NetBeans
platform classes at present, although you could of course take the
gt-swing sources and adapt them.