Sorry, I forgot to tell that to reproduce it, you have to drag one row onto another one.
-----Original Message----- From: Janak Mulani [mailto:[EMAIL PROTECTED] Sent: Thursday, 16. November 2006 1:07 PM To: Indukumar Vellapillil H. (KSDE 211) Cc: [email protected] Subject: RE: [ULC-developer] sun.dc.pr.PRException when the getTreeColumn of ITableTreeModel returns a value other than 0 Hi Indukumar, I ran your sample and I cannot reproduce the error. Column 1 appears as tree and works just fine. In fact, even Column 2 works fine. I need some information. Can you send the full stack trace please? Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Indukumar >Vellapillil H. (KSDE 211) >Sent: Wednesday, November 15, 2006 6:31 PM >To: [email protected] >Subject: [ULC-developer] sun.dc.pr.PRException when the getTreeColumn of >ITableTreeModel returns a value other than 0 > > >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.jav a >: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#getTreeCo l >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.Strin g >) > */ > 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 _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
