I would like to apologize for any inconvenient. In version 1.0.4d, we are having a bug in portfolio, which causes incorrect result in dividend and cash deposit.
We had fixed this bug in the latest version 1.0.4e.
Please get the latest version from http://jstock.sourceforge.net/download.html
Thank you for your support.