org.jdesktop.swingx.combobox.ListComboBoxModel Java Examples

The following examples show how to use org.jdesktop.swingx.combobox.ListComboBoxModel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ShopwareInstallerForm.java    From idea-php-shopware-plugin with MIT License 5 votes vote down vote up
private void appendShopwareVersions()
{

    comboVersions.setModel(new ListComboBoxModel<>(new ArrayList<ShopwareInstallerVersion>()));

    ApplicationManager.getApplication().executeOnPooledThread(() -> {
        final List<ShopwareInstallerVersion> shopwareInstallerVersions1 = getVersions();
        if (shopwareInstallerVersions1 != null) {
            UIUtil.invokeLaterIfNeeded(() -> comboVersions.setModel(new ListComboBoxModel<>(shopwareInstallerVersions1)));
        }
    });

}
 
Example #2
Source File: SymfonyInstallerForm.java    From idea-php-symfony2-plugin with MIT License 5 votes vote down vote up
private void appendSymfonyVersions()
{

    comboVersions.setModel(new ListComboBoxModel<>(new ArrayList<>()));

    ApplicationManager.getApplication().executeOnPooledThread(() -> {
        final List<SymfonyInstallerVersion> symfonyInstallerVersions1 = getVersions();
        if (symfonyInstallerVersions1 != null) {
            UIUtil.invokeLaterIfNeeded(() -> comboVersions.setModel(new ListComboBoxModel<>(symfonyInstallerVersions1)));
        }
    });

}