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 the project.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

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Blog about Java technology documentation and news about Java releases.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today