Jump to content

GUI help - awt or swing or both?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
I'm not sure but I've heard that swing is the new GUI thingy they use nowadays but it's not as stable and compatible as awt. But most GUI programs I've seen import both. I actually don't know much about GUI. I tried the java oracle tutorial but it's only a basic overview of it. All other tutorials I found were sorta outdated so I was wondering if you guys know any better place to learn this? Should I buy a book?

#2
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
Here's a good read on the subject:
AWT vs Swing

I learned what I know about GUI's from:
A Visual Guide to Swing Components (Java Look and Feel) (The Java™ Tutorials > Graphical User Interfaces > Swing Features)
Lesson: Using Swing Components (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Java Programming Notes
I also learned some from an old book I bought... I think it was Sams Teach Yourself Java 5 in 21 Days?

#3
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
Thanks lethal. For some reason, I missed those sections of swing from the Oracle tutorials. I'll check them out now.

Edit: I also heard about SWT. Should I learn that or is swing enough? I might just learn both awt and swing. And some programs have both. Is it possible to have components in one GUI from both, AWT, and Swing?

#4
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java

An Alien said:

Is it possible to have components in one GUI from both, AWT, and Swing?
Yes, most Swing components just Extend the awt components.

#5
An Alien

An Alien

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 260 posts
Alright, thanks guys.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users