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. | |
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 |
int javawrapper.ComboBoxRenderer.m_iMaxChars = 50 [package] |
Max chars to display.
1.5.6