The Java Tutorials' Weblog
NetBeans and the Swing Examples in The Java Tutorial
Several years ago we converted the 100+ examples in the Swing Tutorial to NetBeans projects. We have received several reports of people having trouble opening those NetBeans projects and we have learned that, as of NetBeans 6.5, a tag is now required in theproject.xml file, even if that tag is empty.
We are working on updating those examples but, until that happens, you have to manually add the following tag to your project.xml file, before the </data> tag:
<test-roots/>
For example, the corrected project.xml file for the TableFilterDemoProject example would read:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>TableFilterDemo</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots/> <!-- ADDED -->
</data>
</configuration>
</project>
Thanks for your patience until we fix this problem and thanks, as always, for reading the Java Tutorials.
-- Sharon Zakhour
Posted at 09:34AM Nov 11, 2009 by The Java Tutorial Team | Comments[0]
Comments:
Wednesday Nov 11, 2009