Re: setting size of elements



On Sun, 28 Aug 2005 07:29:58 -0400, Frances wrote:

> (I see that all the ActionListener stuff is the same for Swing as for
> AWT... (I thought you weren't supposed to mix AWT and Swing...;)

I hate that statement. At least that statement unqualified.
- Every Swing component extends an AWT component
- The vast majority of layouts are AWT
- Keyboard, Window, Mouse, Action.. events all
originate from the AWT
- D'n'D is all in the AWT..

Learners get the impression that they can ignore all
of the AWT if they are working with Swing, but you
just need to look at the imports of most Swing code
to realise how much of 'Swing' programming requires
a broad knowledge of the AWT.

> (I guess goes only for visual elements....)

Yep.

> ..again, many thanks.. Frances

No worries. :-)

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"I have to turn my head, until my darkness goes"
The Rolling Stones 'Paint It Black'
.



Relevant Pages

  • Re: New applet project
    ... A web start application (or applet) ... object moving in a window; I have also some text attached to this work ... Note that (java.awt.)Canvas is part of the AWT, ... looking to Swing for good GUI's. ...
    (comp.lang.java.help)
  • Re: Frustrated by AWT..need some help
    ... every confidence that Matisse can use normal J2SE layouts, so it should be possible to write this code* using Matisse ... between Swing and AWT yet, and the replies to this thread have done little to help. ... AWT based GUI Development, come from the AWT. ... The major difference is in the set of *GUI* components offered by each. ...
    (comp.lang.java.help)
  • Re: Swing better than Awt?
    ... Swing is based on AWT. ... The main difference between AWT and Swing is that Swing paints components by itself while AWT let the native system paint them. ... private ActionListener listener = new ActionListener{ ... public void actionPerformed(ActionEvent e) { ...
    (comp.lang.java.programmer)
  • Re: Swing vs .NET
    ... I didn't know that Swing is a set of AWT. ... "Java, used to develop a business data driven application rich of GUI, ... When you compare Javaworld to .Net, ...
    (comp.lang.java.gui)
  • Re: JScrollPane in Applet
    ... The convention for class names in Java is to have ... Note that Applet is an AWT based class (even though ... ..but both JTable and JScrollPane are part of Swing. ... Swing and AWT ...
    (comp.lang.java.gui)