I have a JComboBox loaded with 20,000 data, my problem is when i scroll down or scroll up, it is slower than the JComboBox with the smaller data. What can i do to make my JComboBox run faster or like the JComboBox with smaller data?
Anyone can help me please. Thanks.
8 1851
I have a JComboBox loaded with 20,000 data, my problem is when i scroll down or scroll up, it is slower than the JComboBox with the smaller data. What can i do to make my JComboBox run faster or like the JComboBox with smaller data?
Anyone can help me please. Thanks.
Do you think users would want to scroll through 20,000 items to pick their choice?
I think you should redesign your GUI somewhat.
kind regards,
Jos
Nope. but i have a special search method in my JComboBox to find those item.
If we say like this the user will type "category" and the JComboBox will point or select the category item in that list. And then if the user will choose other data that is below to that data in that list which is "category". When the cursor move down, it is just much slower.
Any other suggestion?
Nope. but i have a special search method in my JComboBox to find those item.
If we say like this the user will type "category" and the JComboBox will point or select the category item in that list. And then if the user will choose other data that is below to that data in that list which is "category". When the cursor move down, it is just much slower.
Any other suggestion?
20 000 is just a lot. Why don't you split the data up into categories and use two combos, one for categories and one for the data and populate the data one based on the value selected on the category one.
Nope. but i have a special search method in my JComboBox to find those item.
If we say like this the user will type "category" and the JComboBox will point or select the category item in that list. And then if the user will choose other data that is below to that data in that list which is "category". When the cursor move down, it is just much slower.
Any other suggestion?
Are you sure it isn't your 'special search method' that's slowing things down?
kind regards,
Jos
Thanks for that suggestion. I'm thinking that way too.
But Is there anyway in java that we could speed that up when we used JComboBox?(just for curiousity) Or will just add more speed of the computer? Hehe... Thanks.
Are you sure it isn't your 'special search method' that's slowing things down?
kind regards,
Jos
I think with that too, but i'm just curious if anyone encountered this problem. Thanks
I think with that too, but i'm just curious if anyone encountered this problem. Thanks
What happens if you temporarily remove that 'special search function'? Does it
scroll up and down as fast as ever?
kind regards,
Jos
What happens if you temporarily remove that 'special search function'? Does it
scroll up and down as fast as ever?
kind regards,
Jos
I just tried your suggestion now, it works fined. But not really slow than i have my 'special search funtion' but you can still spot the difference when you move your keys around the list, the difference is maybe a fraction of a second with the smaller data.
Do you think we can make a special function with that search?
Thanks.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: L L |
last post by:
Dear all,
Is it possible to set selected item a table row or in other ways, the
editable JComboBox 's JTextField- can that be replace by a one row table?
If possible, any direction of what...
|
by: Hal Vaughan |
last post by:
I have a JComboBox with a list of numbers, from 1 digit to 5 digits.
Numbers with more than 3 digits have a comma in them.
I've been aligning them with leading spaces. Is there any simple and...
|
by: Yasser |
last post by:
Hi All,
I developed an application (JFrame) to connect to mysql database. The
application will select price from itemsTable and add each each item
to a JComboBox. If the user change the prices in...
|
by: Robert |
last post by:
When I select a normal cell with a default editor for strings and press
a letter key, the letter is automaticaly typed in the cell, but when I
select a cell with an editable JComboBox editor and...
|
by: jerico |
last post by:
Hi, I am developing an application for which I need to increase the size of the JComboBox.But it is not getting increased.I used the following technique:
Container cont;
JComboBox valueTypeBox ;...
|
by: jeffbroodwar |
last post by:
Hi,
I tried to use JCombobox (i'm using netbeans 5.5)
how can i use this jComboBox1? how can i load elements? I tried this code but i'm receiving errors....
...
|
by: thesti |
last post by:
hi,
How to, if user change the selected item of a JComboBox, it will enable another JComboBox. it's like a validation that the user has to select the year first, then the month, than the date.
...
|
by: HaifaCarina |
last post by:
i have this unfinished java program and i can't figure out what is the problem..
please help...
/**
* @(#)Answer3.java
*
*
* @author
* @version 1.00 2008/1/17
|
by: javatech007 |
last post by:
I am trying to use comboboxes in a ticket payment screen for train tickets. I have two combo boxes. One for picking a route and the other for picking a time. What i want is when you pick a route in...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| | |