Examples of ComboBoxEntry


Examples of de.ailis.xadrian.components.ComboBoxEntry

        controlPanel.add(label, c);
        c.gridx = 1;
        c.insets.left = 5;
        c.fill = GridBagConstraints.HORIZONTAL;
        this.localeComboBox = new JComboBox();
        this.localeComboBox.addItem(new ComboBoxEntry(I18N
            .getString("locale.system"), null));
        for (final String locale: I18N.getString("locale.locales").split(","))
        {
            this.localeComboBox.addItem(new ComboBoxEntry(I18N
                .getString("locale." + locale), locale));
        }
        controlPanel.add(this.localeComboBox, c);
        c.insets.left = 0;
        c.fill = GridBagConstraints.NONE;

        // Create the theme controls
        label =
            new JLabel(I18N.getString("dialog.preferences.prodStats"));
        c.anchor = GridBagConstraints.LINE_START;
        c.gridx = 0;
        c.gridy++;
        controlPanel.add(label, c);
        c.gridx = 1;
        c.insets.left = 5;
        c.fill = GridBagConstraints.HORIZONTAL;
        this.prodStatsComboBox = new JComboBox();
        this.prodStatsComboBox.addItem(new ComboBoxEntry(I18N
            .getString("dialog.preferences.prodStats.perHour"), false));
        this.prodStatsComboBox.addItem(new ComboBoxEntry(I18N
            .getString("dialog.preferences.prodStats.perMinute"), true));
        controlPanel.add(this.prodStatsComboBox, c);
        c.insets.left = 0;
        c.fill = GridBagConstraints.NONE;
View Full Code Here

Examples of de.ailis.xadrian.components.ComboBoxEntry

            .isShowFactoryResources());
        this.nightModeCheckBox.setSelected(config
            .isNightMode());
        this.themeComboBox.setSelectedItem(ThemeFactory.getInstance().getTheme(
            UIManager.getLookAndFeel().getClass().getName()));
        this.localeComboBox.setSelectedItem(new ComboBoxEntry(null,
            config.getLocale()));
        this.prodStatsComboBox.setSelectedItem(new ComboBoxEntry(null,
            config.isProdStatsPerMinute()));
        this.x3tcPlayerSectorComboBox.setSelectedIndex(config.getX3TCPlayerSector());
        this.x3apPlayerSectorComboBox.setSelectedIndex(config.getX3APPlayerSector());

        final String defaultGameId = config.getDefaultGame();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.