Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: Roedy Green 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 16:47:51 -0700 Organization: Canadian Mind Products Lines: 42 Message-ID: References: Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3624 On Wed, 4 May 2011 14:34:58 -0700 (PDT), steveh44 wrote, quoted or indirectly quoted someone who said : >I am learning applets. should one stick to java.awt.* and only extend >Applet or go for Japplet instead and pull in swing? > >When I looked at some applets, most seem to be based on Applet, not >JApplet. It is pretty easy once you learn AWT to flip to Swing. Basically Swing just gives you more things to tweak, but it ads some subtle complications like doing all your GUI work on a single thread, and the insanity of contentPanes. When Java first came out, Applet were the rage. Microsoft made war on them, and hence you see them much less now, though you can use Swing just as well in Applets/JApplets. That is why you see Swing less, you just see fewer new Applets all round. Sun has countered with Java Webstart which I think is a great idea. It is fairly simply to implement. It handles keeping customers up to date. MS can't bugger with it easily. see http://mindprod.com/jgloss/awt.html http://mindprod.com/jgloss/swing.html http://mindprod.com/jgloss/javawebstart.html Applets are fun. They are like being a kid. You can put your art work on the refrigerator of the Internet. But they are more difficult than plain apps. I write hybrids. I debug as an app and then when all is working run as an Applet. http://mindprod.com/jgloss/applet.html -- Roedy Green Canadian Mind Products http://mindprod.com Politicians complain that Kindles and iBooks are killing jobs by destroying the paper book industry. I see it that they have create a way to produce books for less than a third the cost without destroying forests and emitting greenhouse gases in the process. They have created wealth. They are encouraging literacy and cutting the costs of education.