- All Known Subinterfaces:
- ComboBoxModel, MutableComboBoxModel
- All Known Implementing Classes:
- AbstractListModel, BasicDirectoryModel, DefaultComboBoxModel, DefaultListModel, MetalFileChooserUI.DirectoryComboBoxModel, MetalFileChooserUI.FilterComboBoxModel
- See Also:
- Top Examples, Source Code,
JList
void addListDataListener(ListDataListener l)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Object getElementAt(int index)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
int getSize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
void removeListDataListener(ListDataListener l)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1032]Add item to ListModel
By Anonymous on 2004/10/09 00:01:29 Rate
int tmp = staff.size ( ) ;
TrainTicket1 [ ] anArray = new TrainTicket1 [ tmp ] ;
anArray = staff.summary ( ) ;
int cnt_index = 1;
for ( int loop_index = 0; loop_index < tmp; loop_index++ )
{
cnt_index = loop_index + 1;
listModel.addElement ( anArray [ loop_index ] .getSeat ( ) ) ;
}