Java Code Examples for org.jdesktop.swingx.combobox.ListComboBoxModel

The following examples show how to use org.jdesktop.swingx.combobox.ListComboBoxModel. These examples are extracted from open source projects. 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 Project: idea-php-shopware-plugin   Source File: ShopwareInstallerForm.java    License: 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 Project: idea-php-symfony2-plugin   Source File: SymfonyInstallerForm.java    License: 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)));
        }
    });

}