473,387 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

JComboBox Loaded with 20,000 data.

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.
Sep 26 '07 #1
8 1851
JosAH
11,448 Expert 8TB
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
Sep 26 '07 #2
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?
Sep 26 '07 #3
r035198x
13,262 8TB
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.
Sep 26 '07 #4
JosAH
11,448 Expert 8TB
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
Sep 26 '07 #5
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.
Sep 26 '07 #6
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
Sep 26 '07 #7
JosAH
11,448 Expert 8TB
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
Sep 26 '07 #8
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.
Sep 26 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
3
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...
0
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...
1
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...
2
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 ;...
2
jeffbroodwar
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.... ...
2
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. ...
2
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
2
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
jinu1996
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.