Skip to content

Commit

Permalink
Merge pull request #167 from bls337/main
Browse files Browse the repository at this point in the history
fix error when trying to set combo box with no items
  • Loading branch information
bls337 authored Oct 3, 2023
2 parents a18a4ae + 94e9763 commit 18332c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ChannelTable(final LightSheetManagerModel model) {
cmbPresets_.addItem(preset);
}
//cmbPresets.addItem("None");
cmbPresets_.setSelectedItem(presets[0]);
//cmbPresets_.setSelectedItem(presets[0]);
column.setCellEditor(new DefaultCellEditor(cmbPresets_));

// cancel JTable edits when focus is lost to prevent errors
Expand Down

0 comments on commit 18332c1

Please sign in to comment.