Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: should I use java.awt.* only or also use javax.swing in applets? Date: Thu, 05 May 2011 12:16:01 -0400 Organization: The Wasteland Lines: 27 Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3571 In article , Knute Johnson wrote: [...] > Don't hesitate to use JApplet and Swing components. If a computer > will run an AWT Applet it will run a JApplet. Remember though that > just like a Swing application, a JApplet must construct the GUI on > the Event Dispatch Thread. There is a discussion of that on Sun's > tutorial website. > > You can see a JApplet game here; > > http://rabbitbrush.frazmtn.com/asteroids.html Somehow I'd previously overlooked the need to construct the GUI on the EDT for JApplets. Thanks for the reminder! I've updated this old chestnut, accordingly: -- John B. Matthews trashgod at gmail dot com