KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JList

javax.swing
Class JList

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JList
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
See Also:
Top Examples, Source Code, XMLEncoder, ListModel, AbstractListModel, DefaultListModel, ListSelectionModel, DefaultListSelectionModel, ListCellRenderer

public void addListSelectionListener(ListSelectionListener listener)
See Also:
getListSelectionListeners(), getSelectionModel()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addSelectionInterval(int anchor,
                                 int lead)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), removeSelectionInterval(int, int), setSelectionInterval(int, int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void clearSelection()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), isSelectionEmpty()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ListSelectionModel createSelectionModel()
See Also:
DefaultListSelectionModel, setSelectionModel(javax.swing.ListSelectionModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void ensureIndexIsVisible(int index)
See Also:
JComponent.getVisibleRect(), JComponent.scrollRectToVisible(java.awt.Rectangle)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void fireSelectionValueChanged(int firstIndex,
                                         int lastIndex,
                                         boolean isAdjusting)
See Also:
EventListenerList, removeListSelectionListener(javax.swing.event.ListSelectionListener), addListSelectionListener(javax.swing.event.ListSelectionListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
JComponent, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getAnchorSelectionIndex()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), setSelectionInterval(int, int), addSelectionInterval(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Rectangle getCellBounds(int index0,
                               int index1)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ListCellRenderer getCellRenderer()
See Also:
setCellRenderer(javax.swing.ListCellRenderer)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getDragEnabled()
See Also:
setDragEnabled(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getFirstVisibleIndex()
See Also:
JComponent.getVisibleRect(), getLastVisibleIndex()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getFixedCellHeight()
See Also:
setFixedCellHeight(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getFixedCellWidth()
See Also:
setFixedCellWidth(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getLastVisibleIndex()
See Also:
JComponent.getVisibleRect(), getFirstVisibleIndex()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getLayoutOrientation()
See Also:
setLayoutOrientation(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getLeadSelectionIndex()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), setSelectionInterval(int, int), addSelectionInterval(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ListSelectionListener[] getListSelectionListeners()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMaxSelectionIndex()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getMinSelectionIndex()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ListModel getModel()
See Also:
setModel(javax.swing.ListModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getNextMatch(String prefix,
                        int startIndex,
                        Position.Bias bias)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension getPreferredScrollableViewportSize()
See Also:
setPrototypeCellValue(java.lang.Object), Scrollable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getPrototypeCellValue()
See Also:
setPrototypeCellValue(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getScrollableBlockIncrement(Rectangle visibleRect,
                                       int orientation,
                                       int direction)
See Also:
Scrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getScrollableTracksViewportHeight()
See Also:
Scrollable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getScrollableTracksViewportWidth()
See Also:
Scrollable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getScrollableUnitIncrement(Rectangle visibleRect,
                                      int orientation,
                                      int direction)
See Also:
IllegalArgumentException, Scrollable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSelectedIndex()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), getMinSelectionIndex()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getSelectedIndices()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), removeSelectionInterval(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getSelectedValue()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), getModel(), getMinSelectionIndex()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object[] getSelectedValues()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), getModel(), isSelectedIndex(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Color getSelectionBackground()
See Also:
setSelectionForeground(java.awt.Color), setSelectionBackground(java.awt.Color)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Color getSelectionForeground()
See Also:
setSelectionBackground(java.awt.Color), setSelectionForeground(java.awt.Color)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSelectionMode()
See Also:
setSelectionMode(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ListSelectionModel getSelectionModel()
See Also:
setSelectionModel(javax.swing.ListSelectionModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipText(MouseEvent event)
See Also:
JComponent.getToolTipText()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ListUI getUI()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUIClassID()
See Also:
UIDefaults.getUI(javax.swing.JComponent), JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getValueIsAdjusting()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getVisibleRowCount()
See Also:
setVisibleRowCount(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int HORIZONTAL_WRAP
See Also:
setLayoutOrientation(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point indexToLocation(int index)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isSelectedIndex(int index)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), setSelectedIndex(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isSelectionEmpty()
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), clearSelection()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JList()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JList(Object[] listData)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JList(Vector<?> listData)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JList(ListModel dataModel)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1601]Create JList with BevelBorder
By Anonymous on 2005/11/04 20:23:08  Rate
JList result = new JList  ( new DefaultListModel  (  )  ) ; 
 result.setFont  ( new Font  ( "Arial", Font.PLAIN, 12 )  ) ; 
 result.setBorder  ( BorderFactory.createBevelBorder ( javax.swing.border.BevelBorder.LOWERED )  ) ;


public int locationToIndex(Point location)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String paramString()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeListSelectionListener(ListSelectionListener listener)
See Also:
getSelectionModel(), addListSelectionListener(javax.swing.event.ListSelectionListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeSelectionInterval(int index0,
                                    int index1)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), addSelectionInterval(int, int), setSelectionInterval(int, int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setCellRenderer(ListCellRenderer cellRenderer)
See Also:
getCellRenderer()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDragEnabled(boolean b)
See Also:
TransferHandler, JComponent.setTransferHandler(javax.swing.TransferHandler), getDragEnabled(), GraphicsEnvironment.isHeadless(), HeadlessException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFixedCellHeight(int height)
See Also:
Container.addPropertyChangeListener(java.beans.PropertyChangeListener), setFixedCellWidth(int), getPrototypeCellValue()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFixedCellWidth(int width)
See Also:
Container.addPropertyChangeListener(java.beans.PropertyChangeListener), getPrototypeCellValue()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLayoutOrientation(int layoutOrientation)
See Also:
getScrollableTracksViewportHeight(), setVisibleRowCount(int), getLayoutOrientation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setListData(Object[] listData)
See Also:
setModel(javax.swing.ListModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setListData(Vector<?> listData)
See Also:
setModel(javax.swing.ListModel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setModel(ListModel model)
See Also:
getModel(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPrototypeCellValue(Object prototypeCellValue)
See Also:
Container.addPropertyChangeListener(java.beans.PropertyChangeListener), setFixedCellHeight(int), setFixedCellWidth(int), getPrototypeCellValue()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectedIndex(int index)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), isSelectedIndex(int), ListSelectionModel.setSelectionInterval(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectedIndices(int[] indices)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), isSelectedIndex(int), ListSelectionModel.addSelectionInterval(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectedValue(Object anObject,
                             boolean shouldScroll)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectionBackground(Color selectionBackground)
See Also:
JComponent.setFont(java.awt.Font), JComponent.setBackground(java.awt.Color), JComponent.setForeground(java.awt.Color), setSelectionForeground(java.awt.Color), getSelectionBackground()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectionForeground(Color selectionForeground)
See Also:
JComponent.setFont(java.awt.Font), JComponent.setBackground(java.awt.Color), JComponent.setForeground(java.awt.Color), setSelectionBackground(java.awt.Color), getSelectionForeground()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectionInterval(int anchor,
                                 int lead)
See Also:
addListSelectionListener(javax.swing.event.ListSelectionListener), removeSelectionInterval(int, int), addSelectionInterval(int, int), IndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectionMode(int selectionMode)
See Also:
getSelectionMode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSelectionModel(ListSelectionModel selectionModel)
See Also:
getSelectionModel(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setUI(ListUI ui)
See Also:
UIDefaults.getUI(javax.swing.JComponent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setValueIsAdjusting(boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setVisibleRowCount(int visibleRowCount)
See Also:
JViewport, JComponent.getVisibleRect(), getVisibleRowCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void updateUI()
See Also:
UIManager.getUI(javax.swing.JComponent), JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int VERTICAL
See Also:
setLayoutOrientation(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int VERTICAL_WRAP
See Also:
setLayoutOrientation(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags