MASON-INTEREST-L Archives

May 2012

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
From:
Axel Kowald <[log in to unmask]>
Date:
Sun, 27 May 2012 02:06:55 -0400
Content-Transfer-Encoding:
8bit
Content-Type:
text/plain; charset="ISO-8859-1"
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (12 lines)
Okay, I found a solution.
Instead of creating the Display2D in the init() method, I moved it to the
start() method and used this.controller.registerFrame() to register the
frame with the controller. 
Now everything works, because I create the Display2D now after I have set
the new grid dimensions in the controller window. It seems that I could move
in principle everything from the init() method into the start() method. But
why do I need then a separate init() ?  
Any comments ? 

Axel

ATOM RSS1 RSS2