我是 java 新手,一直在查看一些有关 GIS 或地理 GUI java 应用程序的教程。
其中许多人提到并且似乎需要 swingx-ws 或 swing labs 组件和类。
我已经设法找到一些旧版本,但它们似乎在我的 Jform 应用程序中没有达到预期的效果。
基本上,当我在将 .jar 添加到我的库文件夹后尝试拖放时,我会得到停止吸烟标志(笑话)或拒绝符号。
我还通过调色板管理器将组件添加到调色板,一旦选择它们就会出现,但是当我尝试添加时,会显示 javja no class 错误。
教程中的很多链接似乎都把我带到了死站,而且都相当旧了。
基本上我的问题是。 swingx-ws 仍然是向 java gui 应用程序添加映射功能的活跃选项吗?如果没有,还有其他选择吗?
提前致谢
这是我正在尝试遵循教程。
I am new to java and have been looking at few tutorials around GIS or geogrpahical GUI java applications.
Many of them mention and seem to require swingx-ws or swing labs componet and classes.
I have managed to track down some old versions, but they dont seem to have the desired affect in my Jform application.
Basically when I try and drag and drop after adding the .jar to my libraries folder I get the stop smoking sign (joke) or rejected symbol.
I have also added the components to the palette through palette manager and they appear once selected, but when I attempt to add I am shown a javja no class error.
Alot of the links in the tutorials seem to send me to dead sites and are pretty old.
Basically my question is. Is swingx-ws still an active option for adding mapping functionality to java gui apps? And if not, are there any other alternatives?
Thanks in advance
This is the tutorial I am trying to follow.
发布评论
评论(3)
我不知道您正在寻找什么功能,但请查看 JMapViewer 看看是否它会成功的。
I don't know what features you are looking for, but take a look at JMapViewer and see if it will do the trick.
过时的答案,还有很多更新的选项:
我使用 JOSM 作为地图组件库,但是由于这不是其预期用途,因此可能不是很简单。
您还可以使用 gvSIG2 作为地图组件库。他们重新排列了此版本(2)上的代码,以便更简单地使用 gvSIG 作为库,但此版本仍处于测试阶段。
Outdated answer, there are much newer options out there:
I have used JOSM as a library of map components, but as it is not its intended use, it may not be quite straight forward.
You can also use gvSIG2 as a library of map components. They rearranged the code on this version(2) to make it simpler to use gvSIG as a library, but this version is still on a beta phase.
晚了几年,但这是您正在寻找的答案:
Stack Overflow 问答的内部链接
A couple years late, but here is the answer you were looking for:
Internal link to Stack Overflow Q&A