JComboBox performing very slow
I'm using JOptionPan开发者_JS百科e and on that I have a tab. In tab I'm using JScrollPane to create a GUI having lots of text fields, lables and combo box.
The creation time of GUI is good but I'm dealing with the slow response of GUI, especially JComboBox. When I select any item, then it takes almost a second to display it.
I googled a lot and tried so many things but couldn't find a concrete solution. My concern is to speed up the response of combo-box.
Please suggest Thanks
Without a working example there is not much specific advice we can give. Some general tactics:
- Do some profiling to determine what part(s) of the program are preforming the slowest
- Look at memory usage and make sure you aren't at the edge of your max.
- Try cutting out parts of the application and see if it still has slow preformance
精彩评论