<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 05:56:10 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  JList
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JList.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JLayeredPane.AccessibleJLayeredPane.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JList.AccessibleJList.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing</FONT>
<BR>
Class  JList</H2>
<PRE>
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--<A HREF="../../javax/swing/JComponent.html">javax.swing.JComponent</A>
                    |
                    +--<B>javax.swing.JList</B>
</PRE>
<HR>
<DL>
<DT>public class <B>JList</B><DT>extends <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT>implements <A HREF="../../javax/swing/Scrollable.html">Scrollable</A>, <A HREF="../../javax/accessibility/Accessible.html">Accessible</A></DL>

<P>
A component that allows the user to select one or more objects from a
 list.  A separate model, <code>ListModel</code>, represents the contents
 of the list.  It's easy to display an array or vector of objects, using
 a <code>JList</code> constructor that builds an <code>ListModel</code> 
 instance for you:
 <pre>
 // Create a JList that displays the strings in data[]

 String[] data = {"one", "two", "free", "four"};
 JList dataList = new JList(data);
 
 // The value of the JList model property is an object that provides
 // a read-only view of the data.  It was constructed automatically.

 for(int i = 0; i < dataList.getModel().getSize(); i++) {
     System.out.println(dataList.getModel().getElementAt(i));
 }

 // Create a JList that displays the superclass of JList.class.
 // We store the superclasses in a java.util.Vector.

 Vector superClasses = new Vector();
 Class rootClass = javax.swing.JList.class;
 for(Class cls = rootClass; cls != null; cls = cls.getSuperclass()) {
     superClasses.addElement(cls);
 }
 JList classList = new JList(superClasses);
 </pre>
 <p>
 JList doesn't support scrolling directly.  To create a scrolling
 list you make the JList the viewport view of a JScrollPane, e.g.
 <pre>
 JScrollPane scrollPane = new JScrollPane(dataList);
 // Or in two steps:
 JScrollPane scrollPane = new JScrollPane();
 scrollPane.getViewport().setView(dataList);
 </pre>
 <p>
 By default <code>JList</code> supports single selection, i.e. zero or one
 index can be selected.  The selection state is actually managed
 by a separate delegate object, an implementation of <code>ListSelectionModel</code>
 however <code>JList</code> provides convenient properties for managing the selection.
 <pre>
 String[] data = {"one", "two", "free", "four"};
 JList dataList = new JList(data);

 dataList.setSelectedIndex(1);  // select "two"
 dataList.getSelectedValue();   // returns "two"
 </pre>
 <p>
 The contents of a <code>JList</code> can be dynamic, i.e. the list elements can
 change value and the size of the list can change after the JList has
 been created.  The <code>JList</code> observes changes in its model with a
 <code>swing.event.ListDataListener</code> implementation.  A correct 
 implementation of <code>ListModel</code> notifies
 it's listeners each time a change occurs.  The changes are
 characterized by a <code>swing.event.ListDataEvent</code>, which identifies
 the range of List indices that have been modified, added, or removed.
 Simple dynamic-content <code>JList</code> applications can use the
 <code>DefaultListModel</code> class to store list elements.  This class
 implements the <code>ListModel</code> interface and provides the
 <code>java.util.Vector</code> API as well.  Applications that need to 
 provide custom <code>ListModel</code> implementations can subclass 
 <code>AbstractListModel</code>, which provides basic 
 <code>ListDataListener</code> support.  For example:
 <pre>
 // This list model has about 2^16 elements.  Enjoy scrolling.

 ListModel bigData = new AbstractListModel() {
     public int getSize() { return Short.MAX_VALUE; }
     public Object getElementAt(int index) { return "Index " + index; }
 };

 JList bigDataList = new List(bigData);

 // We don't want the JList implementation to compute the width
 // or height of all of the list cells, so we give it a String
 // that's as big as we'll need for any cell.  It uses this to
 // compute values for the fixedCellWidth and fixedCellHeight
 // properties.

 bigDataList.setPrototypeCellValue("Index 1234567890");
 </pre>
 <p>
 <code>JList</code> uses a <code>java.awt.Component</code>, provided by 
 a delegate called the
 <code>cellRendererer</code>, to paint the visible cells in the list.
 The cell renderer component is used like a "rubber stamp" to paint
 each visible row.  Each time the <code>JList</code> needs to paint a cell
 it asks the cell renderer for the component, moves it into place
 using <code>setBounds()</code> and then draws it by calling its paint method.
 The default cell renderer uses a <code>JLabel</code> component to render
 the string value of each component.   You can substitute your
 own cell renderer, using code like this:
 <pre>
  // Display an icon and a string for each object in the list.

 class MyCellRenderer extends JLabel implements ListCellRenderer {
     final static ImageIcon longIcon = new ImageIcon("long.gif");
     final static ImageIcon shortIcon = new ImageIcon("short.gif");

     // This is the only method defined by ListCellRenderer.  We just
     // reconfigure the Jlabel each time we're called.

     public Component getListCellRendererComponent(
       JList list,
       Object value,            // value to display
       int index,               // cell index
       boolean isSelected,      // is the cell selected
       boolean cellHasFocus)    // the list and the cell have the focus
     {
        String s = value.toString();
         setText(s);
         setIcon((s.length > 10) ? longIcon : shortIcon);
      return this;
     }
 }

 String[] data = {"one", "two", "free", "four"};
 JList dataList = new JList(data);
 dataList.setCellRenderer(new MyCellRenderer());
 </pre>
 <p>
 <code>JList</code> doesn't provide any special support for handling double or
 triple (or N) mouse clicks however it's easy to handle them using
 a <code>MouseListener</code>.  Use the <code>JList</code> method 
 <code>locationToIndex()</code> to
 determine what cell was clicked.  For example:
 <pre>
 final JList list = new JList(dataModel);
 MouseListener mouseListener = new MouseAdapter() {
     public void mouseClicked(MouseEvent e) {
         if (e.getClickCount() == 2) {
             int index = list.locationToIndex(e.getPoint());
             System.out.println("Double clicked on Item " + index);
          }
     }
 };
 list.addMouseListener(mouseListener);
 </pre>
 Note that in this example the JList variable is <code>final</code>
 because it's referred to by the anonymous MouseListener class.
 <p>
 For the keyboard keys used by this component in the standard Look and
 Feel (L&F) renditions, see the
 <a href="doc-files/Key-Index.html#JList">JList</a> key assignments.
 <p>
 <strong>Warning:</strong>
 Serialized objects of this class will not be compatible with
 future Swing releases.  The current serialization support is appropriate
 for short term storage or RMI between applications running the same
 version of Swing.  A future release of Swing will provide support for
 long term persistence.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListModel.html"><CODE>ListModel</CODE></A>, 
<A HREF="../../javax/swing/AbstractListModel.html"><CODE>AbstractListModel</CODE></A>, 
<A HREF="../../javax/swing/DefaultListModel.html"><CODE>DefaultListModel</CODE></A>, 
<A HREF="../../javax/swing/ListSelectionModel.html"><CODE>ListSelectionModel</CODE></A>, 
<A HREF="../../javax/swing/DefaultListSelectionModel.html"><CODE>DefaultListSelectionModel</CODE></A>, 
<A HREF="../../javax/swing/ListCellRenderer.html"><CODE>ListCellRenderer</CODE></A>, <A HREF="../../serialized-form.html#javax.swing.JList">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->

<A NAME="inner_class_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Inner Class Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.AccessibleJList.html">JList.AccessibleJList</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The class used to obtain the accessible role for this object.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JComponent.AccessibleJComponent.html">JComponent.AccessibleJComponent</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#accessibleContext">accessibleContext</A>,  
<A HREF="../../javax/swing/JComponent.html#listenerList">listenerList</A>,  
<A HREF="../../javax/swing/JComponent.html#TOOL_TIP_TEXT_KEY">TOOL_TIP_TEXT_KEY</A>,  
<A HREF="../../javax/swing/JComponent.html#ui">ui</A>,  
<A HREF="../../javax/swing/JComponent.html#UNDEFINED_CONDITION">UNDEFINED_CONDITION</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_ANCESTOR_OF_FOCUSED_COMPONENT">WHEN_ANCESTOR_OF_FOCUSED_COMPONENT</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_FOCUSED">WHEN_FOCUSED</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_IN_FOCUSED_WINDOW">WHEN_IN_FOCUSED_WINDOW</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>BOTTOM_ALIGNMENT,  
CENTER_ALIGNMENT,  
LEFT_ALIGNMENT,  
RIGHT_ALIGNMENT,  
TOP_ALIGNMENT</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JList.html#JList()">JList</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a JList with an empty model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JList.html#JList(javax.swing.ListModel)">JList</A></B>(<A HREF="../../javax/swing/ListModel.html">ListModel</A>&nbsp;dataModel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JList that displays the elements in the specified,
 non-null model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JList.html#JList(java.lang.Object[])">JList</A></B>(java.lang.Object[]&nbsp;listData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JList that displays the elements in the specified
 array.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JList.html#JList(java.util.Vector)">JList</A></B>(java.util.Vector&nbsp;listData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a JList that displays the elements in the specified
 Vector.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)">addListSelectionListener</A></B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a listener to the list that's notified each time a change
 to the selection occurs.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#addSelectionInterval(int, int)">addSelectionInterval</A></B>(int&nbsp;anchor,
                     int&nbsp;lead)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selection to be the union of the specified interval with current
 selection.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#clearSelection()">clearSelection</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the selection - after calling this method isSelectionEmpty()
 will return true.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#createSelectionModel()">createSelectionModel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an instance of DefaultListSelectionModel.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#ensureIndexIsVisible(int)">ensureIndexIsVisible</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this JList is being displayed within a JViewport and the
 specified cell isn't completely visible, scroll the viewport.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#fireSelectionValueChanged(int, int, boolean)">fireSelectionValueChanged</A></B>(int&nbsp;firstIndex,
                          int&nbsp;lastIndex,
                          boolean&nbsp;isAdjusting)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method notifies JList ListSelectionListeners that
 the selection model has changed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the AccessibleContext associated with this JComponent</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getAnchorSelectionIndex()">getAnchorSelectionIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first index argument from the most recent addSelectionInterval
 or setSelectionInterval call.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Rectangle</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getCellBounds(int, int)">getCellBounds</A></B>(int&nbsp;index1,
              int&nbsp;index2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the specified range of items in JList
 coordinates, null if index isn't valid.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getCellRenderer()">getCellRenderer</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the object that renders the list items.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getFirstVisibleIndex()">getFirstVisibleIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the index of the cell in the upper left corner of the JList
 or -1 if nothing is visible or the list is empty.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getFixedCellHeight()">getFixedCellHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the fixed cell width value -- the value specified by setting
 the fixedCellHeight property, rather than calculated from the list
 elements.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getFixedCellWidth()">getFixedCellWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the fixed cell width value -- the value specified by setting
 the fixedCellWidth property, rather than calculated from the list
 elements.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getLastVisibleIndex()">getLastVisibleIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the index of the cell in the lower right corner of the JList
 or -1 if nothing is visible or the list is empty.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getLeadSelectionIndex()">getLeadSelectionIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the second index argument from the most recent addSelectionInterval
 or setSelectionInterval call.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getMaxSelectionIndex()">getMaxSelectionIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the largest selected cell index.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getMinSelectionIndex()">getMinSelectionIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the smallest selected cell index.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/ListModel.html">ListModel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getModel()">getModel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data model that holds the list of items displayed
 by the JList component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getPreferredScrollableViewportSize()">getPreferredScrollableViewportSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute the size of the viewport needed to display visibleRowCount
 rows.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getPrototypeCellValue()">getPrototypeCellValue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cell width of the "prototypical cell" -- a cell used
 for the calculation of cell widths, because it has the same value
 as all other list items, instead of forcing the calculation to
 inspect every item in the list.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getScrollableBlockIncrement(java.awt.Rectangle, int, int)">getScrollableBlockIncrement</A></B>(java.awt.Rectangle&nbsp;visibleRect,
                            int&nbsp;orientation,
                            int&nbsp;direction)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the block increment amount.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this JList is displayed in a JViewport, don't change its height
 when the viewports height changes.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this JList is displayed in a JViewport, don't change its width
 when the viewports width changes.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A></B>(java.awt.Rectangle&nbsp;visibleRect,
                           int&nbsp;orientation,
                           int&nbsp;direction)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Horizontal scrolling: return the lists font size or 1 if the font is null.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectedIndex()">getSelectedIndex</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method that returns the first selected index.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectedIndices()">getSelectedIndices</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of all of the selected indices in increasing
 order.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectedValue()">getSelectedValue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method that returns the first selected value
 or null, if the selection is empty.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectedValues()">getSelectedValues</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of the values for the selected cells.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectionBackground()">getSelectionBackground</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the background color for selected cells.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectionForeground()">getSelectionForeground</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the foreground color.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectionMode()">getSelectionMode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether single-item or multiple-item selections are allowed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getSelectionModel()">getSelectionModel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the current selection model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/plaf/ListUI.html">ListUI</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getUI()">getUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the L&F object that renders this component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getUIClassID()">getUIClassID</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the UIFactory class that generates the
 look and feel for this component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getValueIsAdjusting()">getValueIsAdjusting</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of the data model's isAdjusting property.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#getVisibleRowCount()">getVisibleRowCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the preferred number of visible rows.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Point</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#indexToLocation(int)">indexToLocation</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the origin of the specified item in JList
 coordinates, null if index isn't valid.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#isSelectedIndex(int)">isSelectedIndex</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the specified index is selected.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#isSelectionEmpty()">isSelectionEmpty</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if nothing is selected
 This is a convenience method that just delegates to the selectionModel.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#locationToIndex(java.awt.Point)">locationToIndex</A></B>(java.awt.Point&nbsp;location)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a point in JList coordinates to the index
 of the cell at that location.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#paramString()">paramString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this JList.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#removeListSelectionListener(javax.swing.event.ListSelectionListener)">removeListSelectionListener</A></B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a listener from the list that's notified each time a
 change to the selection occurs.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#removeSelectionInterval(int, int)">removeSelectionInterval</A></B>(int&nbsp;index0,
                        int&nbsp;index1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selection to be the set difference of the specified interval
 and the current selection.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setCellRenderer(javax.swing.ListCellRenderer)">setCellRenderer</A></B>(<A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A>&nbsp;cellRenderer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the delegate that's used to paint each cell in the list.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setFixedCellHeight(int)">setFixedCellHeight</A></B>(int&nbsp;height)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this value is greater than zero it defines the height of
 every cell in the list.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setFixedCellWidth(int)">setFixedCellWidth</A></B>(int&nbsp;width)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this value is greater than zero it defines the width of
 every cell in the list.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setListData(java.lang.Object[])">setListData</A></B>(java.lang.Object[]&nbsp;listData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method that constructs a ListModel from an array of Objects
 and then applies setModel to it.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setListData(java.util.Vector)">setListData</A></B>(java.util.Vector&nbsp;listData)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A convenience method that constructs a ListModel from a Vector
 and then applies setModel to it.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setModel(javax.swing.ListModel)">setModel</A></B>(<A HREF="../../javax/swing/ListModel.html">ListModel</A>&nbsp;model)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the model that represents the contents or "value" of the
 list and clears the list selection after notifying PropertyChangeListeners.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setPrototypeCellValue(java.lang.Object)">setPrototypeCellValue</A></B>(java.lang.Object&nbsp;prototypeCellValue)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this value is non-null it's used to compute fixedCellWidth
 and fixedCellHeight by configuring the cellRenderer at index equals
 zero for the specified value and then computing the renderer components
 preferred size.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectedIndex(int)">setSelectedIndex</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select a single cell.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectedIndices(int[])">setSelectedIndices</A></B>(int[]&nbsp;indices)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select a set of cells.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectedValue(java.lang.Object, boolean)">setSelectedValue</A></B>(java.lang.Object&nbsp;anObject,
                 boolean&nbsp;shouldScroll)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects the specified object from the list.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectionBackground(java.awt.Color)">setSelectionBackground</A></B>(java.awt.Color&nbsp;selectionBackground)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the background color for selected cells.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectionForeground(java.awt.Color)">setSelectionForeground</A></B>(java.awt.Color&nbsp;selectionForeground)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the foreground color for selected cells.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectionInterval(int, int)">setSelectionInterval</A></B>(int&nbsp;anchor,
                     int&nbsp;lead)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select the specified interval.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectionMode(int)">setSelectionMode</A></B>(int&nbsp;selectionMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether single-item or multiple-item
 selections are allowed.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setSelectionModel(javax.swing.ListSelectionModel)">setSelectionModel</A></B>(<A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A>&nbsp;selectionModel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selectionModel for the list to a non-null ListSelectionModel
 implementation.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setUI(javax.swing.plaf.ListUI)">setUI</A></B>(<A HREF="../../javax/swing/plaf/ListUI.html">ListUI</A>&nbsp;ui)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the L&F object that renders this component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setValueIsAdjusting(boolean)">setValueIsAdjusting</A></B>(boolean&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data model's isAdjusting property true, so that
 a single event will be generated when all of the selection
 events have finished (for example, when the mouse is being
 dragged over the list in selection mode).</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#setVisibleRowCount(int)">setVisibleRowCount</A></B>(int&nbsp;visibleRowCount)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the preferred number of rows in the list that can be displayed
 without a scollbar, as determined by the nearest JViewport ancestor,
 if any.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JList.html#updateUI()">updateUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the UI property with the "ListUI" from the current default
 UIFactory.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#addAncestorListener(javax.swing.event.AncestorListener)">addAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addNotify()">addNotify</A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addVetoableChangeListener(java.beans.VetoableChangeListener)">addVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#computeVisibleRect(java.awt.Rectangle)">computeVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#contains(int, int)">contains</A>, 
<A HREF="../../javax/swing/JComponent.html#createToolTip()">createToolTip</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, boolean, boolean)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, byte, byte)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, char, char)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, double, double)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, float, float)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, int, int)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, long, long)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, short, short)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)">fireVetoableChange</A>, 
<A HREF="../../javax/swing/JComponent.html#getActionForKeyStroke(javax.swing.KeyStroke)">getActionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentX()">getAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentY()">getAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#getAutoscrolls()">getAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#getBorder()">getBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#getBounds(java.awt.Rectangle)">getBounds</A>, 
<A HREF="../../javax/swing/JComponent.html#getClientProperty(java.lang.Object)">getClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#getComponentGraphics(java.awt.Graphics)">getComponentGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getConditionForKeyStroke(javax.swing.KeyStroke)">getConditionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getDebugGraphicsOptions()">getDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#getGraphics()">getGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getHeight()">getHeight</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets()">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getLocation(java.awt.Point)">getLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getMaximumSize()">getMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getMinimumSize()">getMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getNextFocusableComponent()">getNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#getPreferredSize()">getPreferredSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getRegisteredKeyStrokes()">getRegisteredKeyStrokes</A>, 
<A HREF="../../javax/swing/JComponent.html#getRootPane()">getRootPane</A>, 
<A HREF="../../javax/swing/JComponent.html#getSize(java.awt.Dimension)">getSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipLocation(java.awt.event.MouseEvent)">getToolTipLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText()">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getTopLevelAncestor()">getTopLevelAncestor</A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()">getVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#getWidth()">getWidth</A>, 
<A HREF="../../javax/swing/JComponent.html#getX()">getX</A>, 
<A HREF="../../javax/swing/JComponent.html#getY()">getY</A>, 
<A HREF="../../javax/swing/JComponent.html#grabFocus()">grabFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#hasFocus()">hasFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#isDoubleBuffered()">isDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#isFocusCycleRoot()">isFocusCycleRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#isFocusTraversable()">isFocusTraversable</A>, 
<A HREF="../../javax/swing/JComponent.html#isLightweightComponent(java.awt.Component)">isLightweightComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#isManagingFocus()">isManagingFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#isOpaque()">isOpaque</A>, 
<A HREF="../../javax/swing/JComponent.html#isOptimizedDrawingEnabled()">isOptimizedDrawingEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isPaintingTile()">isPaintingTile</A>, 
<A HREF="../../javax/swing/JComponent.html#isRequestFocusEnabled()">isRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isValidateRoot()">isValidateRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#paint(java.awt.Graphics)">paint</A>, 
<A HREF="../../javax/swing/JComponent.html#paintBorder(java.awt.Graphics)">paintBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#paintChildren(java.awt.Graphics)">paintChildren</A>, 
<A HREF="../../javax/swing/JComponent.html#paintComponent(java.awt.Graphics)">paintComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(int, int, int, int)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(java.awt.Rectangle)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processFocusEvent(java.awt.event.FocusEvent)">processFocusEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processMouseMotionEvent(java.awt.event.MouseEvent)">processMouseMotionEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#putClientProperty(java.lang.Object, java.lang.Object)">putClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#removeAncestorListener(javax.swing.event.AncestorListener)">removeAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removeNotify()">removeNotify</A>, 
<A HREF="../../javax/swing/JComponent.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removeVetoableChangeListener(java.beans.VetoableChangeListener)">removeVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(long, int, int, int, int)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(java.awt.Rectangle)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#requestDefaultFocus()">requestDefaultFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#requestFocus()">requestFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#resetKeyboardActions()">resetKeyboardActions</A>, 
<A HREF="../../javax/swing/JComponent.html#reshape(int, int, int, int)">reshape</A>, 
<A HREF="../../javax/swing/JComponent.html#revalidate()">revalidate</A>, 
<A HREF="../../javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)">scrollRectToVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentX(float)">setAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentY(float)">setAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#setAutoscrolls(boolean)">setAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#setBackground(java.awt.Color)">setBackground</A>, 
<A HREF="../../javax/swing/JComponent.html#setBorder(javax.swing.border.Border)">setBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#setDebugGraphicsOptions(int)">setDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#setDoubleBuffered(boolean)">setDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#setEnabled(boolean)">setEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#setFont(java.awt.Font)">setFont</A>, 
<A HREF="../../javax/swing/JComponent.html#setForeground(java.awt.Color)">setForeground</A>, 
<A HREF="../../javax/swing/JComponent.html#setMaximumSize(java.awt.Dimension)">setMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setMinimumSize(java.awt.Dimension)">setMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setNextFocusableComponent(java.awt.Component)">setNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#setOpaque(boolean)">setOpaque</A>, 
<A HREF="../../javax/swing/JComponent.html#setPreferredSize(java.awt.Dimension)">setPreferredSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setRequestFocusEnabled(boolean)">setRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#setToolTipText(java.lang.String)">setToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#setUI(javax.swing.plaf.ComponentUI)">setUI</A>, 
<A HREF="../../javax/swing/JComponent.html#setVisible(boolean)">setVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#unregisterKeyboardAction(javax.swing.KeyStroke)">unregisterKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#update(java.awt.Graphics)">update</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Container</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>add, 
add, 
add, 
add, 
add, 
addContainerListener, 
addImpl, 
countComponents, 
deliverEvent, 
doLayout, 
getComponent, 
getComponentAt, 
getComponentAt, 
getComponentCount, 
getComponents, 
getLayout, 
insets, 
invalidate, 
isAncestorOf, 
layout, 
list, 
list, 
locate, 
minimumSize, 
paintComponents, 
preferredSize, 
print, 
printComponents, 
processContainerEvent, 
processEvent, 
remove, 
remove, 
removeAll, 
removeContainerListener, 
setLayout, 
validate, 
validateTree</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>action, 
add, 
addComponentListener, 
addFocusListener, 
addKeyListener, 
addMouseListener, 
addMouseMotionListener, 
bounds, 
checkImage, 
checkImage, 
contains, 
createImage, 
createImage, 
disable, 
disableEvents, 
dispatchEvent, 
enable, 
enable, 
enableEvents, 
getBackground, 
getBounds, 
getColorModel, 
getCursor, 
getFont, 
getFontMetrics, 
getForeground, 
getLocale, 
getLocation, 
getLocationOnScreen, 
getName, 
getParent, 
getPeer, 
getSize, 
getToolkit, 
getTreeLock, 
gotFocus, 
handleEvent, 
hide, 
imageUpdate, 
inside, 
isEnabled, 
isShowing, 
isValid, 
isVisible, 
keyDown, 
keyUp, 
list, 
list, 
list, 
location, 
lostFocus, 
mouseDown, 
mouseDrag, 
mouseEnter, 
mouseExit, 
mouseMove, 
mouseUp, 
move, 
nextFocus, 
paintAll, 
postEvent, 
prepareImage, 
prepareImage, 
printAll, 
processComponentEvent, 
processMouseEvent, 
remove, 
removeComponentListener, 
removeFocusListener, 
removeKeyListener, 
removeMouseListener, 
removeMouseMotionListener, 
repaint, 
repaint, 
repaint, 
resize, 
resize, 
setBounds, 
setBounds, 
setCursor, 
setLocale, 
setLocation, 
setLocation, 
setName, 
setSize, 
setSize, 
show, 
show, 
size, 
toString, 
transferFocus</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="JList(javax.swing.ListModel)"><!-- --></A><H3>
JList</H3>
<PRE>
public <B>JList</B>(<A HREF="../../javax/swing/ListModel.html">ListModel</A>&nbsp;dataModel)</PRE>
<DL>
<DD>Construct a JList that displays the elements in the specified,
 non-null model.  All JList constructors delegate to this one.</DL>
<HR>

<A NAME="JList(java.lang.Object[])"><!-- --></A><H3>
JList</H3>
<PRE>
public <B>JList</B>(java.lang.Object[]&nbsp;listData)</PRE>
<DL>
<DD>Construct a JList that displays the elements in the specified
 array.  This constructor just delegates to the ListModel
 constructor.</DL>
<HR>

<A NAME="JList(java.util.Vector)"><!-- --></A><H3>
JList</H3>
<PRE>
public <B>JList</B>(java.util.Vector&nbsp;listData)</PRE>
<DL>
<DD>Construct a JList that displays the elements in the specified
 Vector.  This constructor just delegates to the ListModel
 constructor.</DL>
<HR>

<A NAME="JList()"><!-- --></A><H3>
JList</H3>
<PRE>
public <B>JList</B>()</PRE>
<DL>
<DD>Constructs a JList with an empty model.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getUI()"><!-- --></A><H3>
getUI</H3>
<PRE>
public <A HREF="../../javax/swing/plaf/ListUI.html">ListUI</A> <B>getUI</B>()</PRE>
<DL>
<DD>Returns the L&F object that renders this component.<DD><DL>
<DT><B>Returns:</B><DD>the ListUI object that renders this component</DL>
</DD>
</DL>
<HR>

<A NAME="setUI(javax.swing.plaf.ListUI)"><!-- --></A><H3>
setUI</H3>
<PRE>
public void <B>setUI</B>(<A HREF="../../javax/swing/plaf/ListUI.html">ListUI</A>&nbsp;ui)</PRE>
<DL>
<DD>Sets the L&F object that renders this component.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ui</CODE> - the ListUI L&F object<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="updateUI()"><!-- --></A><H3>
updateUI</H3>
<PRE>
public void <B>updateUI</B>()</PRE>
<DL>
<DD>Set the UI property with the "ListUI" from the current default
 UIFactory.  This method is called by the JList constructor and
 to update the Lists look and feel at runtime.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#updateUI()">updateUI</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIManager.html#getUI(javax.swing.JComponent)"><CODE>UIManager.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getUIClassID()"><!-- --></A><H3>
getUIClassID</H3>
<PRE>
public java.lang.String <B>getUIClassID</B>()</PRE>
<DL>
<DD>Returns the name of the UIFactory class that generates the
 look and feel for this component.<DD><DL>
<DT><B>Returns:</B><DD>"ListUI"<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()">getUIClassID</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, 
<A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getPrototypeCellValue()"><!-- --></A><H3>
getPrototypeCellValue</H3>
<PRE>
public java.lang.Object <B>getPrototypeCellValue</B>()</PRE>
<DL>
<DD>Returns the cell width of the "prototypical cell" -- a cell used
 for the calculation of cell widths, because it has the same value
 as all other list items, instead of forcing the calculation to
 inspect every item in the list.<DD><DL>
<DT><B>Returns:</B><DD>the value of the prototypeCellValue property<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setPrototypeCellValue(java.lang.Object)"><CODE>setPrototypeCellValue(java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setPrototypeCellValue(java.lang.Object)"><!-- --></A><H3>
setPrototypeCellValue</H3>
<PRE>
public void <B>setPrototypeCellValue</B>(java.lang.Object&nbsp;prototypeCellValue)</PRE>
<DL>
<DD>If this value is non-null it's used to compute fixedCellWidth
 and fixedCellHeight by configuring the cellRenderer at index equals
 zero for the specified value and then computing the renderer components
 preferred size.  This property is useful when the list is too long
 to allow JList to just compute the width/height of each cell
 and there's single cell value that's known to occupy as much space
 as any of the others.
 <p>
 The default value of this property is null.
 <p>
 This is a JavaBeans bound property.  Note that we do set
 the fixedCellWidth and fixedCellHeight properties here but
 only a prototypeCellValue PropertyChangeEvent is fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>the</CODE> - value to base fixedCellWidth and fixedCellHeight on<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getPrototypeCellValue()"><CODE>getPrototypeCellValue()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setFixedCellWidth(int)"><CODE>setFixedCellWidth(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setFixedCellHeight(int)"><CODE>setFixedCellHeight(int)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>JComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getFixedCellWidth()"><!-- --></A><H3>
getFixedCellWidth</H3>
<PRE>
public int <B>getFixedCellWidth</B>()</PRE>
<DL>
<DD>Returns the fixed cell width value -- the value specified by setting
 the fixedCellWidth property, rather than calculated from the list
 elements.<DD><DL>
<DT><B>Returns:</B><DD>the fixed cell width<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setFixedCellWidth(int)"><CODE>setFixedCellWidth(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setFixedCellWidth(int)"><!-- --></A><H3>
setFixedCellWidth</H3>
<PRE>
public void <B>setFixedCellWidth</B>(int&nbsp;width)</PRE>
<DL>
<DD>If this value is greater than zero it defines the width of
 every cell in the list.  Otherwise cell widths are computed
 by applying getPreferredSize() to the cellRenderer component
 for each list element.
 <p>
 The default value of this property is -1.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>the</CODE> - width for all cells in this list<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getPrototypeCellValue()"><CODE>getPrototypeCellValue()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setFixedCellWidth(int)"><CODE>setFixedCellWidth(int)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>JComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getFixedCellHeight()"><!-- --></A><H3>
getFixedCellHeight</H3>
<PRE>
public int <B>getFixedCellHeight</B>()</PRE>
<DL>
<DD>Returns the fixed cell width value -- the value specified by setting
 the fixedCellHeight property, rather than calculated from the list
 elements.<DD><DL>
<DT><B>Returns:</B><DD>the fixed cell height<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setFixedCellHeight(int)"><CODE>setFixedCellHeight(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setFixedCellHeight(int)"><!-- --></A><H3>
setFixedCellHeight</H3>
<PRE>
public void <B>setFixedCellHeight</B>(int&nbsp;height)</PRE>
<DL>
<DD>If this value is greater than zero it defines the height of
 every cell in the list.  Otherwise cell heights are computed
 by applying getPreferredSize() to the cellRenderer component
 for each list element.
 <p>
 The default value of this property is -1.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>height</CODE> - an int giving the height in pixels for all cells 
        in this list<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getPrototypeCellValue()"><CODE>getPrototypeCellValue()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setFixedCellWidth(int)"><CODE>setFixedCellWidth(int)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>JComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getCellRenderer()"><!-- --></A><H3>
getCellRenderer</H3>
<PRE>
public <A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A> <B>getCellRenderer</B>()</PRE>
<DL>
<DD>Returns the object that renders the list items.<DD><DL>
<DT><B>Returns:</B><DD>the ListCellRenderer<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setCellRenderer(javax.swing.ListCellRenderer)"><CODE>setCellRenderer(javax.swing.ListCellRenderer)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setCellRenderer(javax.swing.ListCellRenderer)"><!-- --></A><H3>
setCellRenderer</H3>
<PRE>
public void <B>setCellRenderer</B>(<A HREF="../../javax/swing/ListCellRenderer.html">ListCellRenderer</A>&nbsp;cellRenderer)</PRE>
<DL>
<DD>Sets the delegate that's used to paint each cell in the list.  If
 prototypeCellValue was set then the fixedCellWidth and fixedCellHeight
 properties are set as well.  Only one PropertyChangeEvent is generated
 however - for the "cellRenderer" property.
 <p>
 The default value of this property is provided by the ListUI
 delegate, i.e. by the look and feel implementation.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cellRenderer</CODE> - the ListCellRenderer that paints list cells<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getCellRenderer()"><CODE>getCellRenderer()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionForeground()"><!-- --></A><H3>
getSelectionForeground</H3>
<PRE>
public java.awt.Color <B>getSelectionForeground</B>()</PRE>
<DL>
<DD>Returns the foreground color.<DD><DL>
<DT><B>Returns:</B><DD>the Color object for the foreground property<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setSelectionForeground(java.awt.Color)"><CODE>setSelectionForeground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionBackground(java.awt.Color)"><CODE>setSelectionBackground(java.awt.Color)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionForeground(java.awt.Color)"><!-- --></A><H3>
setSelectionForeground</H3>
<PRE>
public void <B>setSelectionForeground</B>(java.awt.Color&nbsp;selectionForeground)</PRE>
<DL>
<DD>Set the foreground color for selected cells.  Cell renderers
 can use this color to render text and graphics for selected
 cells.
 <p>
 The default value of this property is defined by the look
 and feel implementation.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionForeground</CODE> - the Color to use in the foreground
                             for selected list items<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getSelectionForeground()"><CODE>getSelectionForeground()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionBackground(java.awt.Color)"><CODE>setSelectionBackground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setForeground(java.awt.Color)"><CODE>JComponent.setForeground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setBackground(java.awt.Color)"><CODE>JComponent.setBackground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setFont(java.awt.Font)"><CODE>JComponent.setFont(java.awt.Font)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionBackground()"><!-- --></A><H3>
getSelectionBackground</H3>
<PRE>
public java.awt.Color <B>getSelectionBackground</B>()</PRE>
<DL>
<DD>Returns the background color for selected cells.<DD><DL>
<DT><B>Returns:</B><DD>the Color used for the background of selected list items<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setSelectionBackground(java.awt.Color)"><CODE>setSelectionBackground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionForeground(java.awt.Color)"><CODE>setSelectionForeground(java.awt.Color)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionBackground(java.awt.Color)"><!-- --></A><H3>
setSelectionBackground</H3>
<PRE>
public void <B>setSelectionBackground</B>(java.awt.Color&nbsp;selectionBackground)</PRE>
<DL>
<DD>Set the background color for selected cells.  Cell renderers
 can use this color to the fill selected cells.
 <p>
 The default value of this property is defined by the look
 and feel implementation.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionBackground</CODE> - the Color to use for the background
                             of selected cells<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getSelectionBackground()"><CODE>getSelectionBackground()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionForeground(java.awt.Color)"><CODE>setSelectionForeground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setForeground(java.awt.Color)"><CODE>JComponent.setForeground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setBackground(java.awt.Color)"><CODE>JComponent.setBackground(java.awt.Color)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setFont(java.awt.Font)"><CODE>JComponent.setFont(java.awt.Font)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getVisibleRowCount()"><!-- --></A><H3>
getVisibleRowCount</H3>
<PRE>
public int <B>getVisibleRowCount</B>()</PRE>
<DL>
<DD>Return the preferred number of visible rows.<DD><DL>
<DT><B>Returns:</B><DD>an int indicating the preferred number of rows to display
         without using a scrollbar<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setVisibleRowCount(int)"><CODE>setVisibleRowCount(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setVisibleRowCount(int)"><!-- --></A><H3>
setVisibleRowCount</H3>
<PRE>
public void <B>setVisibleRowCount</B>(int&nbsp;visibleRowCount)</PRE>
<DL>
<DD>Set the preferred number of rows in the list that can be displayed
 without a scollbar, as determined by the nearest JViewport ancestor,
 if any.  The value of this property only affects the value of
 the JLists preferredScrollableViewportSize.
 <p>
 The default value of this property is 8.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>visibleRowCount</CODE> - an int specifying the preferred number of
                         visible rows<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getVisibleRowCount()"><CODE>getVisibleRowCount()</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()"><CODE>JComponent.getVisibleRect()</CODE></A>, 
<A HREF="../../javax/swing/JViewport.html"><CODE>JViewport</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getFirstVisibleIndex()"><!-- --></A><H3>
getFirstVisibleIndex</H3>
<PRE>
public int <B>getFirstVisibleIndex</B>()</PRE>
<DL>
<DD>Return the index of the cell in the upper left corner of the JList
 or -1 if nothing is visible or the list is empty.  Note that this
 cell may only be partially visible.<DD><DL>
<DT><B>Returns:</B><DD>an int -- the index of the first visible cell.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getLastVisibleIndex()"><CODE>getLastVisibleIndex()</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()"><CODE>JComponent.getVisibleRect()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLastVisibleIndex()"><!-- --></A><H3>
getLastVisibleIndex</H3>
<PRE>
public int <B>getLastVisibleIndex</B>()</PRE>
<DL>
<DD>Return the index of the cell in the lower right corner of the JList
 or -1 if nothing is visible or the list is empty.  Note that this
 cell may only be partially visible.<DD><DL>
<DT><B>Returns:</B><DD>an int -- the index of the last visible cell.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getLastVisibleIndex()"><CODE>getLastVisibleIndex()</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()"><CODE>JComponent.getVisibleRect()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="ensureIndexIsVisible(int)"><!-- --></A><H3>
ensureIndexIsVisible</H3>
<PRE>
public void <B>ensureIndexIsVisible</B>(int&nbsp;index)</PRE>
<DL>
<DD>If this JList is being displayed within a JViewport and the
 specified cell isn't completely visible, scroll the viewport.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - int -- the index of the cell to make visible<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)"><CODE>JComponent.scrollRectToVisible(java.awt.Rectangle)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()"><CODE>JComponent.getVisibleRect()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="locationToIndex(java.awt.Point)"><!-- --></A><H3>
locationToIndex</H3>
<PRE>
public int <B>locationToIndex</B>(java.awt.Point&nbsp;location)</PRE>
<DL>
<DD>Convert a point in JList coordinates to the index
 of the cell at that location.  Returns -1 if there's no
 cell the specified location.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - The JList relative coordinates of the cell<DT><B>Returns:</B><DD>an int -- the index of the cell at the given location, or -1.</DL>
</DD>
</DL>
<HR>

<A NAME="indexToLocation(int)"><!-- --></A><H3>
indexToLocation</H3>
<PRE>
public java.awt.Point <B>indexToLocation</B>(int&nbsp;index)</PRE>
<DL>
<DD>Returns the origin of the specified item in JList
 coordinates, null if index isn't valid.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the JList cell.<DT><B>Returns:</B><DD>The origin of the index'th cell.</DL>
</DD>
</DL>
<HR>

<A NAME="getCellBounds(int, int)"><!-- --></A><H3>
getCellBounds</H3>
<PRE>
public java.awt.Rectangle <B>getCellBounds</B>(int&nbsp;index1,
                                        int&nbsp;index2)</PRE>
<DL>
<DD>Returns the bounds of the specified range of items in JList
 coordinates, null if index isn't valid.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index1</CODE> - the index of the first JList cell in the range<DD><CODE>index2</CODE> - the index of the last JList cell in the range<DT><B>Returns:</B><DD>the bounds of the indexed cells</DL>
</DD>
</DL>
<HR>

<A NAME="getModel()"><!-- --></A><H3>
getModel</H3>
<PRE>
public <A HREF="../../javax/swing/ListModel.html">ListModel</A> <B>getModel</B>()</PRE>
<DL>
<DD>Returns the data model that holds the list of items displayed
 by the JList component.<DD><DL>
<DT><B>Returns:</B><DD>the ListModel that provides the displayed list of items<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setModel(javax.swing.ListModel)"><CODE>setModel(javax.swing.ListModel)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setModel(javax.swing.ListModel)"><!-- --></A><H3>
setModel</H3>
<PRE>
public void <B>setModel</B>(<A HREF="../../javax/swing/ListModel.html">ListModel</A>&nbsp;model)</PRE>
<DL>
<DD>Sets the model that represents the contents or "value" of the
 list and clears the list selection after notifying PropertyChangeListeners.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>model</CODE> - the ListModel that provides the list of items for display<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getModel()"><CODE>getModel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setListData(java.lang.Object[])"><!-- --></A><H3>
setListData</H3>
<PRE>
public void <B>setListData</B>(java.lang.Object[]&nbsp;listData)</PRE>
<DL>
<DD>A convenience method that constructs a ListModel from an array of Objects
 and then applies setModel to it.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listData</CODE> - an array of Objects containing the items to display
                 in the list<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setModel(javax.swing.ListModel)"><CODE>setModel(javax.swing.ListModel)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setListData(java.util.Vector)"><!-- --></A><H3>
setListData</H3>
<PRE>
public void <B>setListData</B>(java.util.Vector&nbsp;listData)</PRE>
<DL>
<DD>A convenience method that constructs a ListModel from a Vector
 and then applies setModel to it.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listData</CODE> - a Vector containing the items to display in the list<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setModel(javax.swing.ListModel)"><CODE>setModel(javax.swing.ListModel)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="createSelectionModel()"><!-- --></A><H3>
createSelectionModel</H3>
<PRE>
protected <A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A> <B>createSelectionModel</B>()</PRE>
<DL>
<DD>Returns an instance of DefaultListSelectionModel.  This
 method is used by the constructor to initialize the
 selectionModel property.<DD><DL>
<DT><B>Returns:</B><DD>The ListSelectionModel used by this JList.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setSelectionModel(javax.swing.ListSelectionModel)"><CODE>setSelectionModel(javax.swing.ListSelectionModel)</CODE></A>, 
<A HREF="../../javax/swing/DefaultListSelectionModel.html"><CODE>DefaultListSelectionModel</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionModel()"><!-- --></A><H3>
getSelectionModel</H3>
<PRE>
public <A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A> <B>getSelectionModel</B>()</PRE>
<DL>
<DD>Returns the value of the current selection model. The selection
 model handles the task of making single selections, selections
 of contiguous ranges, and non-contiguous selections.<DD><DL>
<DT><B>Returns:</B><DD>the ListSelectionModel that implements list selections<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setSelectionModel(javax.swing.ListSelectionModel)"><CODE>setSelectionModel(javax.swing.ListSelectionModel)</CODE></A>, 
<A HREF="../../javax/swing/ListSelectionModel.html"><CODE>ListSelectionModel</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="fireSelectionValueChanged(int, int, boolean)"><!-- --></A><H3>
fireSelectionValueChanged</H3>
<PRE>
protected void <B>fireSelectionValueChanged</B>(int&nbsp;firstIndex,
                                         int&nbsp;lastIndex,
                                         boolean&nbsp;isAdjusting)</PRE>
<DL>
<DD>This method notifies JList ListSelectionListeners that
 the selection model has changed.  It's used to forward
 ListSelectionEvents from the selectionModel to the
 ListSelectionListeners added directly to the JList.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#removeListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>removeListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A>, 
<A HREF="../../javax/swing/event/EventListenerList.html"><CODE>EventListenerList</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addListSelectionListener(javax.swing.event.ListSelectionListener)"><!-- --></A><H3>
addListSelectionListener</H3>
<PRE>
public void <B>addListSelectionListener</B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Add a listener to the list that's notified each time a change
 to the selection occurs.  Listeners added directly to the JList
 will have their ListSelectionEvent.getSource() == this JList
 (instead of the ListSelectionModel).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The ListSelectionListener to add.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getSelectionModel()"><CODE>getSelectionModel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeListSelectionListener(javax.swing.event.ListSelectionListener)"><!-- --></A><H3>
removeListSelectionListener</H3>
<PRE>
public void <B>removeListSelectionListener</B>(<A HREF="../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Remove a listener from the list that's notified each time a
 change to the selection occurs.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The ListSelectionListener to remove.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#getSelectionModel()"><CODE>getSelectionModel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionModel(javax.swing.ListSelectionModel)"><!-- --></A><H3>
setSelectionModel</H3>
<PRE>
public void <B>setSelectionModel</B>(<A HREF="../../javax/swing/ListSelectionModel.html">ListSelectionModel</A>&nbsp;selectionModel)</PRE>
<DL>
<DD>Set the selectionModel for the list to a non-null ListSelectionModel
 implementation. The selection model handles the task of making single
 selections, selections of contiguous ranges, and non-contiguous
 selections.
 <p>
 This is a JavaBeans bound property.<DD><DL>
<DT><B>Returns:</B><DD>selectionModel  the ListSelectionModel that implements
                         list selections<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getSelectionModel()"><CODE>getSelectionModel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionMode(int)"><!-- --></A><H3>
setSelectionMode</H3>
<PRE>
public void <B>setSelectionMode</B>(int&nbsp;selectionMode)</PRE>
<DL>
<DD>Determines whether single-item or multiple-item
 selections are allowed.
 The following selectionMode values are allowed:
 <ul>
 <li> <code>SINGLE_SELECTION</code>
   Only one list index can be selected at a time.  In this
   mode the setSelectionInterval and addSelectionInterval
   methods are equivalent, and they only the first index
   argument is used.
 <li> <code>SINGLE_INTERVAL_SELECTION</code>
   One contiguous index interval can be selected at a time.
   In this mode setSelectionInterval and addSelectionInterval
   are equivalent.
 <li> <code>MULTIPLE_INTERVAL_SELECTION</code>
   In this mode, there's no restriction on what can be selected.
 </ul><DD><DL>
<DT><B>Parameters:</B><DD><CODE>selectionMode</CODE> - an int specifying the type of selections
        that are permissible<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getSelectionMode()"><CODE>getSelectionMode()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionMode()"><!-- --></A><H3>
getSelectionMode</H3>
<PRE>
public int <B>getSelectionMode</B>()</PRE>
<DL>
<DD>Returns whether single-item or multiple-item selections are allowed.<DD><DL>
<DT><B>Returns:</B><DD>The value of the selectionMode property.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#setSelectionMode(int)"><CODE>setSelectionMode(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getAnchorSelectionIndex()"><!-- --></A><H3>
getAnchorSelectionIndex</H3>
<PRE>
public int <B>getAnchorSelectionIndex</B>()</PRE>
<DL>
<DD>Returns the first index argument from the most recent addSelectionInterval
 or setSelectionInterval call.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>The index that most recently anchored an interval selection.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getAnchorSelectionIndex()"><CODE>ListSelectionModel.getAnchorSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLeadSelectionIndex()"><!-- --></A><H3>
getLeadSelectionIndex</H3>
<PRE>
public int <B>getLeadSelectionIndex</B>()</PRE>
<DL>
<DD>Returns the second index argument from the most recent addSelectionInterval
 or setSelectionInterval call.
 This is a convenience method that just  delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>The index that most recently ended a interval selection.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getLeadSelectionIndex()"><CODE>ListSelectionModel.getLeadSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getMinSelectionIndex()"><!-- --></A><H3>
getMinSelectionIndex</H3>
<PRE>
public int <B>getMinSelectionIndex</B>()</PRE>
<DL>
<DD>Returns the smallest selected cell index.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>The smallest selected cell index.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getMinSelectionIndex()"><CODE>ListSelectionModel.getMinSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getMaxSelectionIndex()"><!-- --></A><H3>
getMaxSelectionIndex</H3>
<PRE>
public int <B>getMaxSelectionIndex</B>()</PRE>
<DL>
<DD>Returns the largest selected cell index.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>The largest selected cell index.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getMaxSelectionIndex()"><CODE>ListSelectionModel.getMaxSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isSelectedIndex(int)"><!-- --></A><H3>
isSelectedIndex</H3>
<PRE>
public boolean <B>isSelectedIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Returns true if the specified index is selected.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>True if the specified index is selected.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#isSelectedIndex(int)"><CODE>ListSelectionModel.isSelectedIndex(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectedIndex(int)"><CODE>setSelectedIndex(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isSelectionEmpty()"><!-- --></A><H3>
isSelectionEmpty</H3>
<PRE>
public boolean <B>isSelectionEmpty</B>()</PRE>
<DL>
<DD>Returns true if nothing is selected
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Returns:</B><DD>True if nothing is selected<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#isSelectionEmpty()"><CODE>ListSelectionModel.isSelectionEmpty()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#clearSelection()"><CODE>clearSelection()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="clearSelection()"><!-- --></A><H3>
clearSelection</H3>
<PRE>
public void <B>clearSelection</B>()</PRE>
<DL>
<DD>Clears the selection - after calling this method isSelectionEmpty()
 will return true.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#clearSelection()"><CODE>ListSelectionModel.clearSelection()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#isSelectionEmpty()"><CODE>isSelectionEmpty()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionInterval(int, int)"><!-- --></A><H3>
setSelectionInterval</H3>
<PRE>
public void <B>setSelectionInterval</B>(int&nbsp;anchor,
                                 int&nbsp;lead)</PRE>
<DL>
<DD>Select the specified interval.  Both the anchor and lead indices are
 included.  It's not neccessary for anchor to be less than lead.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anchor</CODE> - The first index to select<DD><CODE>lead</CODE> - The last index to select<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#setSelectionInterval(int, int)"><CODE>ListSelectionModel.setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#removeSelectionInterval(int, int)"><CODE>removeSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addSelectionInterval(int, int)"><!-- --></A><H3>
addSelectionInterval</H3>
<PRE>
public void <B>addSelectionInterval</B>(int&nbsp;anchor,
                                 int&nbsp;lead)</PRE>
<DL>
<DD>Set the selection to be the union of the specified interval with current
 selection.  Both the anchor and lead indices are
 included.  It's not neccessary for anchor to be less than lead.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anchor</CODE> - The first index to add to the selection<DD><CODE>lead</CODE> - The last index to add to the selection<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#addSelectionInterval(int, int)"><CODE>ListSelectionModel.addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#removeSelectionInterval(int, int)"><CODE>removeSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeSelectionInterval(int, int)"><!-- --></A><H3>
removeSelectionInterval</H3>
<PRE>
public void <B>removeSelectionInterval</B>(int&nbsp;index0,
                                    int&nbsp;index1)</PRE>
<DL>
<DD>Set the selection to be the set difference of the specified interval
 and the current selection.  Both the anchor and lead indices are
 removed.  It's not neccessary for anchor to be less than lead.
 This is a convenience method that just delegates to the selectionModel.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anchor</CODE> - The first index to remove from the selection<DD><CODE>lead</CODE> - The last index to remove from the selection<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#removeSelectionInterval(int, int)"><CODE>ListSelectionModel.removeSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setSelectionInterval(int, int)"><CODE>setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addSelectionInterval(int, int)"><CODE>addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setValueIsAdjusting(boolean)"><!-- --></A><H3>
setValueIsAdjusting</H3>
<PRE>
public void <B>setValueIsAdjusting</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>Sets the data model's isAdjusting property true, so that
 a single event will be generated when all of the selection
 events have finished (for example, when the mouse is being
 dragged over the list in selection mode).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the boolean value for the property value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#setValueIsAdjusting(boolean)"><CODE>ListSelectionModel.setValueIsAdjusting(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getValueIsAdjusting()"><!-- --></A><H3>
getValueIsAdjusting</H3>
<PRE>
public boolean <B>getValueIsAdjusting</B>()</PRE>
<DL>
<DD>Returns the value of the data model's isAdjusting property.
 This value is true if multiple changes are being made.<DD><DL>
<DT><B>Returns:</B><DD>true if multiple selection-changes are occuring, as
         when the mouse is being dragged over the list<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#getValueIsAdjusting()"><CODE>ListSelectionModel.getValueIsAdjusting()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedIndices()"><!-- --></A><H3>
getSelectedIndices</H3>
<PRE>
public int[] <B>getSelectedIndices</B>()</PRE>
<DL>
<DD>Return an array of all of the selected indices in increasing
 order.<DD><DL>
<DT><B>Returns:</B><DD>All of the selected indices, in increasing order.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#removeSelectionInterval(int, int)"><CODE>removeSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedIndex(int)"><!-- --></A><H3>
setSelectedIndex</H3>
<PRE>
public void <B>setSelectedIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Select a single cell.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the one cell to select<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#setSelectionInterval(int, int)"><CODE>ListSelectionModel.setSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#isSelectedIndex(int)"><CODE>isSelectedIndex(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedIndices(int[])"><!-- --></A><H3>
setSelectedIndices</H3>
<PRE>
public void <B>setSelectedIndices</B>(int[]&nbsp;indices)</PRE>
<DL>
<DD>Select a set of cells.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indices</CODE> - The indices of the cells to select<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ListSelectionModel.html#addSelectionInterval(int, int)"><CODE>ListSelectionModel.addSelectionInterval(int, int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#isSelectedIndex(int)"><CODE>isSelectedIndex(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedValues()"><!-- --></A><H3>
getSelectedValues</H3>
<PRE>
public java.lang.Object[] <B>getSelectedValues</B>()</PRE>
<DL>
<DD>Return an array of the values for the selected cells.
 The returned values are sorted in increasing index order.<DD><DL>
<DT><B>Returns:</B><DD>the selected values<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#isSelectedIndex(int)"><CODE>isSelectedIndex(int)</CODE></A>, 
<A HREF="../../javax/swing/JList.html#getModel()"><CODE>getModel()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedIndex()"><!-- --></A><H3>
getSelectedIndex</H3>
<PRE>
public int <B>getSelectedIndex</B>()</PRE>
<DL>
<DD>A convenience method that returns the first selected index.
 Returns -1 if there is no selected item.<DD><DL>
<DT><B>Returns:</B><DD>The first selected index.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getMinSelectionIndex()"><CODE>getMinSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedValue()"><!-- --></A><H3>
getSelectedValue</H3>
<PRE>
public java.lang.Object <B>getSelectedValue</B>()</PRE>
<DL>
<DD>A convenience method that returns the first selected value
 or null, if the selection is empty.<DD><DL>
<DT><B>Returns:</B><DD>The first selected value.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getMinSelectionIndex()"><CODE>getMinSelectionIndex()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#getModel()"><CODE>getModel()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#addListSelectionListener(javax.swing.event.ListSelectionListener)"><CODE>addListSelectionListener(javax.swing.event.ListSelectionListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedValue(java.lang.Object, boolean)"><!-- --></A><H3>
setSelectedValue</H3>
<PRE>
public void <B>setSelectedValue</B>(java.lang.Object&nbsp;anObject,
                             boolean&nbsp;shouldScroll)</PRE>
<DL>
<DD>Selects the specified object from the list.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anObject</CODE> - the Object to select<DD><CODE>shouldScroll</CODE> - true if the list should scroll to display
                      the selected object</DL>
</DD>
</DL>
<HR>

<A NAME="getPreferredScrollableViewportSize()"><!-- --></A><H3>
getPreferredScrollableViewportSize</H3>
<PRE>
public java.awt.Dimension <B>getPreferredScrollableViewportSize</B>()</PRE>
<DL>
<DD>Compute the size of the viewport needed to display visibleRowCount
 rows.  This is trivial if fixedCellWidth and fixedCellHeight
 were specified.  Note that they can specified implicitly with
 the prototypeCellValue property.  If fixedCellWidth wasn't specified,
 it's computed by finding the widest list element.  If fixedCellHeight
 wasn't specified then we resort to heuristics:
 <ul>
 <li>
 If the model isn't empty we just multiply the height of the first row
 by visibleRowCount.
 <li>
 If the model is empty, i.e. JList.getModel().getSize() == 0, then
 we just allocate 16 pixels per visible row, and 256 pixels
 for the width (unless fixedCellWidth was set), and hope for the best.
 </ul><DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/Scrollable.html#getPreferredScrollableViewportSize()">getPreferredScrollableViewportSize</A> in interface <A HREF="../../javax/swing/Scrollable.html">Scrollable</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JList.html#getPreferredScrollableViewportSize()"><CODE>getPreferredScrollableViewportSize()</CODE></A>, 
<A HREF="../../javax/swing/JList.html#setPrototypeCellValue(java.lang.Object)"><CODE>setPrototypeCellValue(java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableUnitIncrement(java.awt.Rectangle, int, int)"><!-- --></A><H3>
getScrollableUnitIncrement</H3>
<PRE>
public int <B>getScrollableUnitIncrement</B>(java.awt.Rectangle&nbsp;visibleRect,
                                      int&nbsp;orientation,
                                      int&nbsp;direction)</PRE>
<DL>
<DD>Horizontal scrolling: return the lists font size or 1 if the font is null.
 We're using the font size instead of the width of some canonical string,
 e.g. "m", because it's cheaper.
 <p>
 Vertical scrolling: if we're scrolling downwards (<code>direction</code> is
 greater than 0), and the first row is completely visible with respect
 to <code>visibleRect</code>, then return its height.  If
 we're scrolling downwards and the first row is only partially visible,
 return the height of the visible part of the first row.  Similarly
 if we're scrolling upwards we return the height of the row above
 the first row, unless the first row is partially visible.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A> in interface <A HREF="../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>The distance to scroll to expose the next or previous row.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)"><CODE>Scrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableBlockIncrement(java.awt.Rectangle, int, int)"><!-- --></A><H3>
getScrollableBlockIncrement</H3>
<PRE>
public int <B>getScrollableBlockIncrement</B>(java.awt.Rectangle&nbsp;visibleRect,
                                       int&nbsp;orientation,
                                       int&nbsp;direction)</PRE>
<DL>
<DD>Returns the block increment amount.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableBlockIncrement(java.awt.Rectangle, int, int)">getScrollableBlockIncrement</A> in interface <A HREF="../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>The visibleRect.height or visibleRect.width per the orientation.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)"><CODE>Scrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportWidth()"><!-- --></A><H3>
getScrollableTracksViewportWidth</H3>
<PRE>
public boolean <B>getScrollableTracksViewportWidth</B>()</PRE>
<DL>
<DD>If this JList is displayed in a JViewport, don't change its width
 when the viewports width changes.  This allows horizontal
 scrolling if the JViewport is itself embedded in a JScrollPane.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A> in interface <A HREF="../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>False - don't track the viewports width.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableTracksViewportWidth()"><CODE>Scrollable.getScrollableTracksViewportWidth()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getScrollableTracksViewportHeight()"><!-- --></A><H3>
getScrollableTracksViewportHeight</H3>
<PRE>
public boolean <B>getScrollableTracksViewportHeight</B>()</PRE>
<DL>
<DD>If this JList is displayed in a JViewport, don't change its height
 when the viewports height changes.  This allows vertical
 scrolling if the JViewport is itself embedded in a JScrollPane.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableTracksViewportHeight()">getScrollableTracksViewportHeight</A> in interface <A HREF="../../javax/swing/Scrollable.html">Scrollable</A><DT><B>Returns:</B><DD>False - don't track the viewports width.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Scrollable.html#getScrollableTracksViewportWidth()"><CODE>Scrollable.getScrollableTracksViewportWidth()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="paramString()"><!-- --></A><H3>
paramString</H3>
<PRE>
protected java.lang.String <B>paramString</B>()</PRE>
<DL>
<DD>Returns a string representation of this JList. This method 
 is intended to be used only for debugging purposes, and the 
 content and format of the returned string may vary between      
 implementations. The returned string may be empty but may not 
 be <code>null</code>.
 <P>
 Overriding paramString() to provide information about the
 specific new aspects of the JFC components.<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this JList.<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#paramString()">paramString</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="getAccessibleContext()"><!-- --></A><H3>
getAccessibleContext</H3>
<PRE>
public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE>
<DL>
<DD>Get the AccessibleContext associated with this JComponent<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/accessibility/Accessible.html#getAccessibleContext()">getAccessibleContext</A> in interface <A HREF="../../javax/accessibility/Accessible.html">Accessible</A><DT><B>Returns:</B><DD>the AccessibleContext of this JComponent<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getAccessibleContext()">getAccessibleContext</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JList.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JLayeredPane.AccessibleJLayeredPane.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JList.AccessibleJList.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
