Class myList

Class myList

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.List
                   |
        Warning: links to the API classes above do not exist.  Only links to the 
        Ponzo classes and the "see also" classes exist. If you choose a link 
        that does not exist, simply hit the right mouse button to return to this frame.
                   |
                   +----myList
To Go Back click here.
class myList
extends List
 This class extends the List class.  This is required because the width of the list
   window needs to be a function of the list items.  This class over-rides the minimumSize()
   method to specify the size of the list window.
   

Constructor Index

 o myList(int, boolean, String)
This construction instanciates a List object and saves information needed to set the size of the
        list window.

Method Index

 o minimumSize()
 Over-riding the default minimumSize method in order to set my own size.

Constructors

 o myList
  public myList(int r,
                boolean v,
                String s)
This construction instanciates a List object and saves information needed to set the size of the
        list window.
Parameters:
r - specifies the number of visual rows
v - specifies whether or not items can be selected in the list
s - is used to determine the width of the list window.

Methods

 o minimumSize
  public Dimension minimumSize()
 Over-riding the default minimumSize method in order to set my own size.  Specifically,
      the width of the testString is determined via the the FontMetrics class, as well as it's
      height. The layout manager will call this when it places the List.
Parameters:
null - no parameters
Returns:
Dimension is the size in pixels of the list window (including any vertical scroll bar)
Overrides:
minimumSize in class List