问题描述
我在Netbeans IDE中安装SwingX时遇到问题。我想玩JXPanel和相关组件,但我无法获得正确的库并继续使用。
I have problem installing SwingX in my Netbeans IDE. I want to play with JXPanel and related components but i could not get right library and get it going.
我试图下载swingx.jar但是没有有效的链接可用在互联网上。我以某种方式设法下载swingx-1.6.jar,swingx-beaninfo-0.9.7和swingbean.jar。我将这些jar文件导入到我使用tools-> library创建SwingX的新库中,之后转到tools-> palette-> Swing / AWT Components并添加了一个名为SwingX的新调色板组并添加了创建的库(SwingX)进去。现在我在IDE中得到一个块,如图所示。
I tried to download swingx.jar but there is no valid link available in internet. I somehow managed to download swingx-1.6.jar, swingx-beaninfo-0.9.7 and swingbean.jar. I imported these jar files into the new library i created "SwingX" using tools->library and after that went to tools->palette->Swing/AWT Components and added a new palette group called SwingX and added the created library (SwingX) into it. Now i get a block in my IDE as shown in the figure.
图片1
Picture 1
然后我将库添加到我的项目中,该项目显示在图片2 中,当我尝试要将来自pallete组的JXXollapsiblePane插入到JFrame中,我会得到 picture3 中显示的以下错误。
Then i added the library into my project which is shown in the picture 2 and when i tried to insert JXXollapsiblePane from the pallete group into a JFrame i am gettign the following error shown in picture3.
图片2
Picture 2
图片3
Picture 3
推荐答案
添加 swingx-1.6 .jar 到您的项目而不是swingx-beaninfo-0.9.7
Add swingx-1.6.jar to your project instead of swingx-beaninfo-0.9.7
这篇关于在Netbeans中安装SwingX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!