kohinoor2007
Programmer
Hi Guys,
I have a JCombobox which must be filled in with a large number of Data(May be millions of elements).
So It will take a lot of time to load the combobox.The data to load the combobox is got from the server.
So I have decided to implement the "Value List Handler" pattern which gives always a sublist of the whole list of data.
Following is a link of the "value list handler" pattern link.
It has methods for getting a sublist from the whole list.
So my real problem or what I need is as follows:
The JComboBox on loading will be initially populated ,with the values it gets from the "valueListIterator"(a subList).But the scrollbar should look in a way that the combobox is filled with the whole list.
When the user scrolls down or moves up the other sublists are got from the server(Using the Iterator) & the combobox must have to be filled in with this sublist.
So In short the combobox gets its values in pieces while scrolling up & down the list either using the scroll bar or using the up,down arrow keys.
For the end user, the behaviour of the combobox is as if the whole list of data is loaded into the comboBox.
Another thing is,When should be the new sublists loaded into the comboBox ,I mean which is the scrollBar level, when the newsublists should be loaded..
How Can I achieve the above behaviour in the JComboBox.Any help or tips in this direction is appreciated.
Thanks
K
I have a JCombobox which must be filled in with a large number of Data(May be millions of elements).
So It will take a lot of time to load the combobox.The data to load the combobox is got from the server.
So I have decided to implement the "Value List Handler" pattern which gives always a sublist of the whole list of data.
Following is a link of the "value list handler" pattern link.
It has methods for getting a sublist from the whole list.
So my real problem or what I need is as follows:
The JComboBox on loading will be initially populated ,with the values it gets from the "valueListIterator"(a subList).But the scrollbar should look in a way that the combobox is filled with the whole list.
When the user scrolls down or moves up the other sublists are got from the server(Using the Iterator) & the combobox must have to be filled in with this sublist.
So In short the combobox gets its values in pieces while scrolling up & down the list either using the scroll bar or using the up,down arrow keys.
For the end user, the behaviour of the combobox is as if the whole list of data is loaded into the comboBox.
Another thing is,When should be the new sublists loaded into the comboBox ,I mean which is the scrollBar level, when the newsublists should be loaded..
How Can I achieve the above behaviour in the JComboBox.Any help or tips in this direction is appreciated.
Thanks
K