Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #3624

Re: should I use java.awt.* only or also use javax.swing in applets?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: should I use java.awt.* only or also use javax.swing in applets?
Date 2011-05-05 16:47 -0700
Organization Canadian Mind Products
Message-ID <vdd6s6lvui8fctl82n9bb40thvudqprmlm@4ax.com> (permalink)
References <ba0c3c4d-cf9e-4b1b-82a8-30b84405b915@17g2000prr.googlegroups.com>

Show all headers | View raw


On Wed, 4 May 2011 14:34:58 -0700 (PDT), steveh44
<steve_h44@yahoo.com> 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.  

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

should I use java.awt.* only or also use javax.swing in applets? steveh44 <steve_h44@yahoo.com> - 2011-05-04 14:34 -0700
  Re: should I use java.awt.* only or also use javax.swing in applets? Knute Johnson <nospam@knutejohnson.com> - 2011-05-04 16:07 -0700
    Re: should I use java.awt.* only or also use javax.swing in applets? "John B. Matthews" <nospam@nospam.invalid> - 2011-05-05 12:16 -0400
      Re: should I use java.awt.* only or also use javax.swing in applets? markspace <-@.> - 2011-05-05 10:35 -0700
        Re: should I use java.awt.* only or also use javax.swing in applets? "John B. Matthews" <nospam@nospam.invalid> - 2011-05-05 17:20 -0400
          O/T: Awesome vocabulary (Was: should I use java.awt.* only or also use javax.swing in applets?) Lew <noone@lewscanon.com> - 2011-05-05 17:28 -0400
            Re: O/T: Awesome vocabulary (Was: should I use java.awt.* only or also use javax.swing in applets?) Tom Anderson <twic@urchin.earth.li> - 2011-05-05 23:31 +0100
              Re: O/T: Awesome vocabulary (Was: should I use java.awt.* only or also use javax.swing in applets?) Jim Janney <jjanney@shell.xmission.com> - 2011-05-05 17:02 -0600
          Re: should I use java.awt.* only or also use javax.swing in applets? markspace <-@.> - 2011-05-05 20:05 -0700
  Re: should I use java.awt.* only or also use javax.swing in applets? Lew <noone@lewscanon.com> - 2011-05-04 19:10 -0400
  Re: should I use java.awt.* only or also use javax.swing in applets? Roedy Green <see_website@mindprod.com.invalid> - 2011-05-05 16:47 -0700
  Re: should I use java.awt.* only or also use javax.swing in applets? Andrew Thompson <andrewthommo@gmail.com> - 2011-05-06 03:25 -0700
    Re: should I use java.awt.* only or also use javax.swing in applets? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-06 19:06 +0200

csiph-web