Search in sources :

Example 1 with LanguagesComboBoxRenderer

use of de.alpharogroup.bundle.app.combobox.renderer.LanguagesComboBoxRenderer in project bundle-app-ui by astrapi69.

the class NewCustomLocalePanel method newCmbLanguage.

protected javax.swing.JComboBox<Languages> newCmbLanguage(final Model<ApplicationDashboardBean> model) {
    LanguagesComboBoxModel cmbModel = LanguagesComboBoxModel.get();
    final javax.swing.JComboBox<Languages> comboBox = new javax.swing.JComboBox<>(cmbModel);
    comboBox.addItemListener(e -> onChangeLanguage(e));
    comboBox.setRenderer(new LanguagesComboBoxRenderer());
    comboBox.setMaximumRowCount(10);
    return comboBox;
}
Also used : LanguagesComboBoxRenderer(de.alpharogroup.bundle.app.combobox.renderer.LanguagesComboBoxRenderer) Languages(de.alpharogroup.db.resource.bundles.entities.Languages) LanguagesComboBoxModel(de.alpharogroup.bundle.app.combobox.model.LanguagesComboBoxModel)

Aggregations

LanguagesComboBoxModel (de.alpharogroup.bundle.app.combobox.model.LanguagesComboBoxModel)1 LanguagesComboBoxRenderer (de.alpharogroup.bundle.app.combobox.renderer.LanguagesComboBoxRenderer)1 Languages (de.alpharogroup.db.resource.bundles.entities.Languages)1