@Override protected void installDefaults() { // NOTE: This next line of code was added because, since squareButton in // BasicComboBoxUI is private, I need to have some way of reading it // from UIManager. // This is an incomplete solution (since it implies that squareButons, // once set, cannot be reset per state. Probably ok, but not always ok). // This line of code should be removed at the same time that // squareButton // is made protected in the super class. super.installDefaults(); // This is here instead of in updateStyle because the value for padding // needs to remain consistent with the value for padding in // BasicComboBoxUI. I wouldn't have this value here at all if not // for the fact that I cannot make "padding" protected in any way // for an update release. This *should* be fixed in Java 7 padding = UIManager.getInsets("ComboBox.padding"); updateStyle(comboBox); }
@Override protected void installDefaults() { super.installDefaults(); // this icon must be created after the font has been installed // on the combobox this.uneditableArrowIcon = SubstanceCoreUtilities.getArrowIcon( this.comboBox, new TransitionAwareIcon.TransitionAwareUIDelegate() { @Override public TransitionAwareUI getTransitionAwareUI() { return (TransitionAwareUI) comboBox.getUI(); } }, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); this.updateComboBoxBorder(); }
@Override protected void installDefaults() { super.installDefaults(); // this icon must be created after the font has been installed // on the combobox this.uneditableArrowIcon = SubstanceCoreUtilities.getArrowIcon( this.comboBox, new TransitionAwareIcon.TransitionAwareUIDelegate() { @Override public TransitionAwareUI getTransitionAwareUI() { return (TransitionAwareUI) comboBox.getUI(); } }, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); this.updateComboBoxBorder(); }