The ComboBox model for the FlatLaf themes.
FlatlafThemesComboBoxModel binaries are available on Maven Central.
If you use Maven or Gradle, add a dependency with following coordinates to your build script:
groupId: com.formdev
artifactId: flatlaf
version: (see button below)
Otherwise download flatlaf-themes-combobox-model-<version>.jar
here:
Place the JComboBox
component on your form and then set the model to an instance of the FlatlafThemesComboBoxModel
.
private static FlatlafThemesComboBoxModel themesModel;
private javax.swing.JComboBox<String> themesComboBox;
...
themesModel = new FlatlafThemesComboBoxModel();
themesComboBox = new javax.swing.JComboBox<>();
themesComboBox.setModel(themesModel);