Java Code Examples for javax.swing.plaf.basic.BasicArrowButton#SOUTH
The following examples show how to use
javax.swing.plaf.basic.BasicArrowButton#SOUTH .
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 File: LuckComboBoxUI.java From littleluck with Apache License 2.0 | 6 votes |
/** * <pre> * 重写下拉按钮,增加焦点颜色 * * Rewrite the drop-down button to increase the focus color * </pre> * * @return arrow button info */ protected JButton createArrowButton() { JButton button = new LuckComboBoxButton(BasicArrowButton.SOUTH) { private static final long serialVersionUID = -7259590635997077859L; @Override public LuckBorderField getBorderField() { return LuckComboBoxUI.this; } @Override public JComponent getParentComp() { return LuckComboBoxUI.this.comboBox; } }; button.setName("ComboBox.arrowButton"); return button; }
Example 2
Source File: ModernScrollBarUI.java From nanoleaf-desktop with MIT License | 5 votes |
@Override protected JButton createIncreaseButton(int orientation) { thumbColor = Color.GRAY; thumbLightShadowColor = new Color(0, 0, 0, 0); thumbDarkShadowColor = new Color(0, 0, 0, 0); thumbHighlightColor = Color.GRAY; trackColor = new Color(57, 57, 57); trackHighlightColor = Color.GRAY; return new BasicArrowButton(BasicArrowButton.SOUTH, Color.GRAY, Color.GRAY, new Color(57, 57, 57), Color.LIGHT_GRAY); }
Example 3
Source File: ModernScrollBarUI.java From nanoleaf-desktop with MIT License | 5 votes |
@Override protected JButton createDecreaseButton(int orientation) { thumbColor = Color.GRAY; thumbLightShadowColor = new Color(0, 0, 0, 0); thumbDarkShadowColor = new Color(0, 0, 0, 0); thumbHighlightColor = Color.GRAY; trackColor = new Color(57, 57, 57); trackHighlightColor = Color.GRAY; return new BasicArrowButton(BasicArrowButton.SOUTH, Color.GRAY, Color.GRAY, new Color(57, 57, 57), Color.LIGHT_GRAY); }
Example 4
Source File: SwingSpinnerWidget.java From atdl4j with MIT License | 5 votes |
private void doButtonsLayout(JPanel buttonPanel) { buttonPanel.setBorder(BorderFactory.createLoweredBevelBorder()); GridBagConstraints gc = new GridBagConstraints(); gc.gridx=0; buttonUp = new BasicArrowButtonFixedSize(BasicArrowButton.NORTH); buttonDown = new BasicArrowButtonFixedSize(BasicArrowButton.SOUTH); buttonPanel.add(buttonUp, gc); buttonPanel.add(buttonDown, gc); }
Example 5
Source File: SettlersComboboxUi.java From settlers-remake with MIT License | 4 votes |
@Override protected JButton createArrowButton() { JButton button = new ScrollbarUiButton(BasicArrowButton.SOUTH, UIDefaults.ARROW_COLOR); button.setName("ComboBox.arrowButton"); return button; }