Skip to content

Commit 5a5201a

Browse files
killingermakurtakov
authored andcommitted
Update Snippet384.java
Fixed Combobox default theme
1 parent 5791ed3 commit 5a5201a

File tree

1 file changed

+2
-1
lines changed
  • examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets

1 file changed

+2
-1
lines changed

examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet384.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static void main(String[] args) {
129129
// combo box for theme selection
130130
Combo themeCombo = new Combo(shell, SWT.DROP_DOWN | SWT.READ_ONLY);
131131
themeCombo.setItems("Light Theme", "Dark Theme", "Darker Theme");
132-
themeCombo.select(1);
132+
themeCombo.select(0);
133133
themeCombo.addListener(SWT.Selection, e -> {
134134
int selected = themeCombo.getSelectionIndex();
135135
switch (selected) {
@@ -147,6 +147,7 @@ public static void main(String[] args) {
147147
}
148148
});
149149

150+
150151
shell.open();
151152
shell.layout();
152153

0 commit comments

Comments
 (0)