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?

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 2011-05-04 19:10 -0400
Organization albasani.net
Message-ID <ipsmaf$tr$1@news.albasani.net> (permalink)
References <ba0c3c4d-cf9e-4b1b-82a8-30b84405b915@17g2000prr.googlegroups.com>

Show all headers | 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