Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: should I use java.awt.* only or also use javax.swing in applets?
Date Wed, 04 May 2011 19:10:15 -0400
Organization albasani.net
Lines 38
Message-ID <ipsmaf$tr$1@news.albasani.net> (permalink)
References <ba0c3c4d-cf9e-4b1b-82a8-30b84405b915@17g2000prr.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net MODcVU3IYqlssKPvx4zVIvTp51nN6PchSXD34txTDI/nyfXcuUEqlL4Ghrcypr/Yp4klUFGyBg9uERBjE1KIGQ==
NNTP-Posting-Date Wed, 4 May 2011 23:09:03 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="71eCRDR9plZhur80x1Q/RSZ3vgNP+NPCH1umKtY4lkPbGJHL2XjuHG795aqn+v/+D9iiQl+0roFN1LlEpAQ8wGEH58aelvavvI8fBL9CRMb5bsCWRbg96A1UDPnArVE6"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
In-Reply-To <ba0c3c4d-cf9e-4b1b-82a8-30b84405b915@17g2000prr.googlegroups.com>
Cancel-Lock sha1:wAqhprdywi5ecNGnX9t9rZGLnq0=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3524

Show key headers only | View raw


steveh44 wrote:
> folks,
>
> newbie here.
>
> 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.
>
> Basically I am asking, if I want to make sure my applet run best and
> on most browser, should I just stick to awt and not include any swing
> stuff? I know if I extend JApplet I can still use awt classes and
> methods if I want to.

Speaking only from my own personal preference, I find the Swing world more 
hospitable.  I don't know that it makes a real difference from a deployment 
perspective either way, but Swing components are rather more internal to the 
Java campus.  AWT components more explicitly involve platform resources.

I realize that I'm hideously over-generalizing, but I intend to convey the 
summary and taste of my bias rather than to describe the details.

In any event (haha), the Swing programming model is fairly clean and opens up 
nicely to a lot of the libraries that handle graphics, printing, transforms, 
whatever.

The real benefit is its event-driven mechanism and the model-view-controller 
(MVC) perspective.

Naturally there are java.awt... libraries involved in Swing programming. 
We're really only comparing the component model parts here.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

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