JComboBox deleteUser = new JComboBox(queryUser()); //queryUser()的返回值为字符串数组

deleteUser.setModel(new DefaultComboBoxModel(queryUser()));//在对字符串数组进行了删除操作后,添加此条语句便可实现实时更新

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-08-12
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案