Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTable Speed

Status
Not open for further replies.

jsulman

Programmer
Jun 14, 2001
85
US
I have a speed issue with a JTable. It has a column consisting of a JComboBox with a JTextField as an editor that acts as an interactive search. The JComboBox has about 30,000 entries in it (I know that’s too many). The problem is two fold. The first is getting focus. When clicking on the JComboBox it takes about two or three seconds for the JTextBox to get the focus and allow me to begin editing. The second problem is when selecting an item in the JComoBox. This takes about 3 or 4 seconds for the selection to actually show up in the JTextBox.

I am sure it is something in the table because I can use the same JComboBox with the same JTextField with the same data outside the table and it works fine. In fact I’ve even increased the items in the JComboBox to over 150,000 and the speed is still acceptable. It appears the JTable is causing the problem.

Any ideas?

Thanks in advance.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top