Search in sources :

Example 1 with CountriesComboBoxRenderer

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

the class NewCustomLocalePanel method newCmbCountry.

protected javax.swing.JComboBox<Countries> newCmbCountry(final Model<ApplicationDashboardBean> model) {
    CountriesComboBoxModel cmbModel = CountriesComboBoxModel.get();
    final javax.swing.JComboBox<Countries> comboBox = new javax.swing.JComboBox<>(cmbModel);
    comboBox.addItemListener(e -> onChangeCountry(e));
    comboBox.setRenderer(new CountriesComboBoxRenderer());
    return comboBox;
}
Also used : Countries(de.alpharogroup.db.resource.bundles.entities.Countries) CountriesComboBoxRenderer(de.alpharogroup.bundle.app.combobox.renderer.CountriesComboBoxRenderer) CountriesComboBoxModel(de.alpharogroup.bundle.app.combobox.model.CountriesComboBoxModel)

Aggregations

CountriesComboBoxModel (de.alpharogroup.bundle.app.combobox.model.CountriesComboBoxModel)1 CountriesComboBoxRenderer (de.alpharogroup.bundle.app.combobox.renderer.CountriesComboBoxRenderer)1 Countries (de.alpharogroup.db.resource.bundles.entities.Countries)1