Hello,

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:

http://docs.geotools.org/stable/javadocs/org/geotools/swing/JMapPane.html

(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.

Michael

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to