-4

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

enter image description here

Thanks.

Baz
  • 36,440
  • 11
  • 68
  • 94

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
  • 203,806
  • 29
  • 246
  • 1,045