Uses of Interface
javax.swing.ListCellRenderer
Packages that use ListCellRenderer
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
-
Uses of ListCellRenderer in javax.swing
Classes in javax.swing that implement ListCellRendererModifier and TypeClassDescriptionclassRenders an item in a list.static classA subclass of DefaultListCellRenderer that implements UIResource.Fields in javax.swing declared as ListCellRendererModifier and TypeFieldDescriptionprotected ListCellRenderer<? super E> JComboBox.rendererThis protected field is implementation specific.Methods in javax.swing that return ListCellRendererModifier and TypeMethodDescriptionListCellRenderer<? super E> JList.getCellRenderer()Returns the object responsible for painting list items.ListCellRenderer<? super E> JComboBox.getRenderer()Returns the renderer used to display the selected item in theJComboBoxfield.Methods in javax.swing with parameters of type ListCellRendererModifier and TypeMethodDescriptionvoidJList.setCellRenderer(ListCellRenderer<? super E> cellRenderer) Sets the delegate that is used to paint each cell in the list.voidJComboBox.setRenderer(ListCellRenderer<? super E> aRenderer) Sets the renderer that paints the list items and the item selected from the list in the JComboBox field. -
Uses of ListCellRenderer in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement ListCellRendererModifier and TypeClassDescriptionclassComboBox rendererstatic classA subclass of BasicComboBoxRenderer that implements UIResource.Methods in javax.swing.plaf.basic that return ListCellRendererModifier and TypeMethodDescriptionprotected ListCellRenderer<Object> BasicComboBoxUI.createRenderer()Creates the default renderer that will be used in a non-editiable combo box.Methods in javax.swing.plaf.basic with parameters of type ListCellRendererModifier and TypeMethodDescriptionprotected voidBasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use theCellRendererPaneto paint it. -
Uses of ListCellRenderer in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement ListCellRendererModifier and TypeClassDescriptionprotected classDeprecated.As of JDK version 9.classRender different type sizes and styles.