/** * Returns the icon for the specified arrow button. * * @param button * Arrow button. * @return Icon for the specified button. */ private Icon getCurrentIcon(JButton button) { Icon icon = SubstanceCoreUtilities .getArrowIcon(button, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); return icon; }
/** * Returns the icon for the specified arrow button. * * @param button * Arrow button. * @return Icon for the specified button. */ private Icon getCurrentIcon(JButton button) { Icon icon = SubstanceCoreUtilities .getArrowIcon(button, SubstanceCoreUtilities .getPopupFlyoutOrientation(this.comboBox)); return icon; }
@Override protected JButton createPopupButton() { this.substancePopupButton = new SubstanceDropDownButton(this.datePicker); this.substancePopupButton.setFocusPainted(false); configurePopupButton(); this.substancePopupButton.setIcon(SubstanceCoreUtilities.getArrowIcon( this.substancePopupButton, SwingConstants.SOUTH)); return this.substancePopupButton; }
@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(); }
((SubstanceDropDownButton) arrowButton) .setIcon(SubstanceCoreUtilities .getArrowIcon( arrowButton, SubstanceCoreUtilities
((SubstanceDropDownButton) arrowButton) .setIcon(SubstanceCoreUtilities .getArrowIcon( arrowButton, SubstanceCoreUtilities