I downloaded your attached xml files from previous message.
It seems that you want to be able to modify the nxn array from 40-400.
This will need a lot of memory when you have 400*400 cells.
I modified it and it can be chaged from 40-200.
1. You need to allocate the maximum number of cells needed.
2. The lattice GUI has been replaced with particleSet.

I did not understand why you want to modify range so I removed it.
Please check out the following modified version.

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/decaychangeN_pkg/decaychangeN.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1313kB):double click downloaded file to run it. (10 times by 6 users) , Download EJS source (4 times by 4 users) View EJS source