Hi,

I am using a ULCTableTree. When I override the getTreeColumn method to
return a value other than 0, the ULCTableTree component triggers an
exception.

sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:537)
        at
sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer.java
:374)....

I am attaching a sample application demonstrating the problem.

Environment:
- ULC Version: 6.1.1
- Java: 1.4.2 on both client and server.

Thanks and Regards
Indukumar

X----------------------------------

public class ULCTestCase extends ULCFrame implements IApplication {

        public static void main(String[] args) {

                DevelopmentRunner.main(args);
        }

        /**
         * @see com.ulcjava.base.application.IApplication#start()
         */
        public void start() {

                ULCTestCase testCase = new ULCTestCase();

                final DefaultMutableTableTreeNode root = new
DefaultMutableTableTreeNode(new Object[] {"root", "root", "root"},
                        new boolean[] {false, false, true}, false);
                final DefaultMutableTableTreeNode row1 = new
DefaultMutableTableTreeNode(new Object[] {"AAA", "BBB", "CCC"},
                        new boolean[] {false, false, true}, false);
                final DefaultMutableTableTreeNode row1a = new
DefaultMutableTableTreeNode(new Object[] {"aaa", "bbb", "ccc"},
                        new boolean[] {false, false, true}, true);
                DefaultMutableTableTreeNode row2 = new
DefaultMutableTableTreeNode(new Object[] {"DDD", "EEE", "FFF"},
                        new boolean[] {false, false, true}, false);
                DefaultMutableTableTreeNode row2a = new
DefaultMutableTableTreeNode(new Object[] {"ddd", "eee", "fff"},
                        new boolean[] {false, false, true}, true);
                DefaultMutableTableTreeNode row3 = new
DefaultMutableTableTreeNode(new Object[] {"GGG", "HHH", "III"},
                        new boolean[] {false, false, true}, false);

                row1.add(row1a);
                row2.add(row2a);

                root.add(row1);
                root.add(row2);
                root.add(row3);

                final DefaultTableTreeModel model = new
DefaultTableTreeModel(root, new String[] {"As", "Bs", "Cs"}) {

                        /**
                         * @see
com.ulcjava.base.application.tabletree.AbstractTableTreeModel#getTreeCol
umn()
                         */
                        public int getTreeColumn() {

                                return 1;
                        }
                };

                model.setRoot(root);

                final ULCTableTree tree = new ULCTableTree(model);
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setDragEnabled(true);

                testCase.add(new ULCScrollPane(tree));

                testCase.setVisible(true);
        }

        /**
         * @see com.ulcjava.base.application.IApplication#stop()
         */
        public void stop() {

        }

        /**
         * @see com.ulcjava.base.application.IApplication#activate()
         */
        public void activate() {

        }

        /**
         * @see com.ulcjava.base.application.IApplication#passivate()
         */
        public void passivate() {

        }

        /**
         * @see
com.ulcjava.base.application.IApplication#handleMessage(java.lang.String
)
         */
        public void handleMessage(String arg0) {

        }

        /**
         * @see com.ulcjava.base.application.IApplication#pause()
         */
        public void pause() {

        }

        /**
         * @see com.ulcjava.base.application.IApplication#resume()
         */
        public void resume() {

        }

}

X----------------------------------
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to