TreeControl image not updating correctly in JWidgets

Article ID: 1031
Last updated: 05 Feb, 2008
Article ID: 1031
Last updated: 05 Feb, 2008
Revision: 1
Views: 2756
Posted: 12 Mar, 1998
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


Using the setOpen() method on a TreeControl does not update the node image displayed on the TreeControl.


Cause


This is a bug in the 3.0 version of JWidgets that causes the node image to redraw incorrectly when the setOpen() method is used.


Action


A revised version of the TextAndImageNode.java file is available by clicking here.

This file will repair the problem of the node image not being updated correctly when setOpen()is used.

To install this file, simply replace and recompile the existing TextAndImageNode.java file.

To recompile the file, type

    javac TextAndImageNode.java

at the command line.

A new TextAndImageNode.class file will be created for inclusion in your projects.

This file must be compiled using JDK 1.1.x.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1031
Last updated: 05 Feb, 2008
Revision: 1
Views: 2756
Posted: 12 Mar, 1998 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category