From 94e9763ec8c4680903d93a66ff2b20e25ef3dffc Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 3 Oct 2023 11:22:21 -0700 Subject: [PATCH] fix error when trying to set combo box with no items --- .../lightsheetmanager/gui/tabs/channels/ChannelTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/channels/ChannelTable.java b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/channels/ChannelTable.java index 93de30b..7e63cba 100644 --- a/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/channels/ChannelTable.java +++ b/src/main/java/org/micromanager/lightsheetmanager/gui/tabs/channels/ChannelTable.java @@ -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