Dynamically change JComboBox

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.

以上就是Dynamically change JComboBox的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准