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
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 22 May 2012 15:17:28 +0200
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Content-Type:
text/plain; charset=ISO-8859-1; format=flowed
Subject:
From:
"Richard O. Legendi" <[log in to unmask]>
MIME-Version:
1.0
In-Reply-To:
Organization:
AITIA International, Inc.
Comments:
cc: Sean Luke <[log in to unmask]>
Parts/Attachments:
text/plain (45 lines)
Wow, cool, thanks for the clarification Sean!

Best,
Richard

Richard O. Legendi
Software developer
Intelligent Applications and Web Services
AITIA International, Inc.
http://people.inf.elte.hu/legendi/

On 2012.05.22. 15:13, Sean Luke wrote:
> No, you could just say frame.dispose().  In fact I was thinking of setting up frames so that if they're registered with the Console they auto-dispose on quit.
>
> Sean
>
> On May 22, 2012, at 4:54 AM, Richard O. Legendi wrote:
>
>> Hi all,
>>
>> This is probably an obvious question: all the sample codes do quit() in a GuiState like this:
>>
>>     @Override
>>     public void quit() {
>>         super.quit();
>>
>>        if (frame != null) {
>> frame .dispose();
>>         }
>>     }
>>
>> I was just curious if the null check is required here. I don't see when the frame can be null, could you help me with that? It is always initialized properly in init() and quit() cannot be called without initializing the GuiState, right?
>>
>> Thanks for the clarification in advance!
>>
>> Best,
>> Richard
>>
>> -- 
>> Richard O. Legendi
>> Software developer
>> Intelligent Applications and Web Services
>> AITIA International, Inc.
>> http://people.inf.elte.hu/legendi/

ATOM RSS1 RSS2