MASON-INTEREST-L Archives

May 2012

MASON-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Subject:
From:
"Richard O. Legendi" <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 22 May 2012 10:54:02 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
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