Inherits javax::swing::JLabel.
Public Member Functions | |
ComboBoxRenderer (JComboBox oBox) | |
Constructor. | |
Component | getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
This method displays the file choice, with a max of 50 chars. | |
Package Attributes | |
int | m_iMaxChars = 50 |
Max chars to display. | |
Static Package Attributes | |
static final long | serialVersionUID = 1 |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper.ComboBoxRenderer.ComboBoxRenderer | ( | JComboBox | oBox | ) |
Constructor.
oBox | JComboBox Combo box to display |
Component javawrapper.ComboBoxRenderer.getListCellRendererComponent | ( | JList | list, | |
Object | value, | |||
int | index, | |||
boolean | isSelected, | |||
boolean | cellHasFocus | |||
) |
This method displays the file choice, with a max of 50 chars.
list | List object | |
value | value to display | |
index | Index selected | |
isSelected | Whether it's selected | |
cellHasFocus | Whether the cell has focus |
final long javawrapper.ComboBoxRenderer.serialVersionUID = 1 [static, package] |
int javawrapper.ComboBoxRenderer.m_iMaxChars = 50 [package] |
Max chars to display.