Examples of IEditorThemeProperties


Examples of net.sf.robocode.ui.editor.theme.IEditorThemeProperties

    getPreviewLabel().setPreferredSize(new Dimension(width, height));
  }

  private void initializeFontAndTheme() {
    // Read the theme properties
    IEditorThemeProperties themeProps = EditorThemePropertiesManager.getCurrentEditorThemeProperties();

    // Set selected theme
    ComboBoxUtil.setSelected(getThemeComboBox(), themeProps.getThemeName());

    // Set selected font name
    ComboBoxUtil.setSelected(getFontNameComboBox(), themeProps.getFontName());

    // Set selected font style
    ComboBoxUtil.setSelected(getFontStyleComboBox(), themeProps.getNormalTextStyle());

    // Set selected font size
    ComboBoxUtil.setSelected(getFontSizeComboBox(), "" + themeProps.getFontSize());
  }
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.