G'day, scratch head, I'm trying to get my head around your question... what is the role of newClass in relation to the construction of the GUI? Cheers. AB -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Wednesday, 11 February 2009 4:15 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Instance... ...is there a means to create an instance of a class with out actually specifying an object name? E.G. Class newClass = Class(); I would like not to have newClass created even though it's scope is limited to the calling method. If I leave it as it is, the compiler will throw a warning indicating the object newClass is never called locally. I use the above syntax for loading a gui class which never gets used other than to create the gui in the first place. Just wondering. Jim James M. Corbett A / Technical Specialist GST/HST Micros | Micros de la TPS/TVH (613) 941-1338 "Not good science? Why, before writing RELIC, we did extensive scientific research on the worldwide problem of brain-eating monsters infesting museums. What more could you want?" -- Douglas Preston __________ NOD32 3844 (20090211) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com