I am fetching the data values from the database successfully. I have also stored them into a String[]
array. I need to load the String array as the items of the JComboBox
in response to key actionperformed. How can I reload the items of the JComboBox
whenever a key is pressed as the fetched values depend on the key pressed. Rather simply, I need to dynamically refresh the JComboBox
items.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…