#95 update to Jhotdraw

gui (23)

update to latest version of Jhotdraw is 95% working(takes about 1 hour to modify Jstock code to work) however there seems to be some sort of failure during re-load of saved diagrams caused in:

JStock 'OperatorFigure'
in the following code:

final int size = in.getElementCount();
for (int i = 0; i < size; i++) {
final AbstractConnector c = (AbstractConnector) in.readObject(i);
The "ref" is not being found during the DOM load, which would indicate that the information is not being correctly written out........

Update to the latest Jhotdraw also allows the "delete" bug to be fixed, that was filed in a previous bug report, it seems that mouse navigation of menus is the problem.
Currently it is too difficult to track down bugs in Jstock draw because:
1. the current Jhotdraw library is nearly 4 years out of date
2. source to trace thru the class is not available, since the library does not announce which revision it is.


  • yccheok

    yccheok - 2011-03-26

    Thanks for the nice try. Instead of keep changing JStock source code, to cope with latest JHotDraw release, we have an initiative to "fork" out a version of JHotDraw, and modify it to suit to JStock need. Please refer to


    However, the work has been stopped for a while, as we need to take care for other features and bug fixes which is more urgent.

    Although we can live with bugs caused by current used outdated JHotDraw, in long run, we wish to maintain our own JHotDraw code base.

    Talk to me if you would like to take over this task.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks