>>>>> "pelinkcygt" == pelinkcygt <
pelin...@gmail.com> writes:
pelinkcygt> I am asking although the NetLogo model works fine why the
pelinkcygt> changes in the code of the model is leading to displaying
pelinkcygt> the interface as expected or a blank page instead. If the
pelinkcygt> problem is not related to code changing, where I am wrong?
Offhand, my guess would be a layout problem, where the
InterfaceComponent is too small to hold its contents. The required
amount of space might have changed if you added, moved, or resized
elements of the interface.
You might find NetLogo's org.nlogo.awt.Tree.printComponentTree() method
useful for troubleshooting layout problems. It recursively prints the
postions and sizes of a whole tree of AWT/Swing containers and
components.
Offhand, it doesn't seem plausible to me that merely changing something
in the model's Code tab could cause the symptoms you're describing.
Versions of NetLogo prior to 5.0.2 responded poorly when not given an
adequate size by the embedding browser or application. It was fixed in
NetLogo 5.0.2:
https://github.com/NetLogo/NetLogo/commit/cd865053a98af6391496be381dfcfe5690dfdf3a
You might experimentally try upgrading to 5.0.2 and see if the problem
goes away. (You could learn something from that experiment even if you
ultimately need to get the code working with 4.1.3.)