-4

I want to create a combobox with a button to remove menu as the picture below

enter image description here

Thanks.

Baz
  • 35,635
  • 11
  • 69
  • 91

1 Answers1

2

Don't try to edit the ComboBoxModel in situ. Instead, create a model editor using a two column JTable and the approach shown here. A JDialog would be a suitable top-level container.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974