Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI - JFC include AWT?

 
Chris Popz
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

In the specification for SCJD version 1.3.3 it says that the user interface "must be composed exclusively with components from the Java Foundation Classes (Swing components)". Now to the question:
Is AWT part of the JFC? When searching the web I get "different" answers...

The reason for asking is that my initial idea was to use AWT Layoutmanagers, but...
[ February 22, 2007: Message edited by: Christian Borgstrom ]
 
Brian Kelly
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe it means you can't use a class that extends
java.awt.Component

So you can't use java.awt.Button

You must use components that extend
javax.swing.JComponent

So you can use javax.swing.JButton

Something like java.awt.GridLayout doesn't extend java.awt.Componet so you can use it.

This is my understand, and if it's wrong, I'm as I've already sent in my assignment
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic