• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing components - GUI

 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It must be composed exclusively with components from the Java Foundation Classes (Swing components).

>> does this mean no awt? thereby ruling out

import java.awt.event.ActionListener;

If so, how best to get input from text fields and submit for search?

Thanks
 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucy, hope this is helpful. Strictly speaking, ActionListener is not a component. You can use it freely.
 
Zafer Abu saeed
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that a "component" is a "visual component",
that is, a class that extends java.awt.Component or javax.swing.JComponent.

In this case, you must use subclasses of javax.swing.JComponent, not the other..

Classes such as Dimension, Rectangle, Toolkit, ActionListener (all listeners).. are not components, and are allowed to be used.

(Personally, I'm already using them in my assignemnt).
[ November 30, 2004: Message edited by: Zafer Abu saeed ]
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic