| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | |
| | |
| | | int n = b.getIconTextGap() + b.getIcon().getIconWidth() + |
| | | b.getBorder().getBorderInsets(b).left; |
| | | buttonBorder = new EmptyBorder(5, n, 5, 25); |
| | | Border highlightBorder = |
| | | UIManager.getBorder("List.focusCellHighlightBorder"); |
| | | if (highlightBorder == null) |
| | | { |
| | | highlightBorder = |
| | | new javax.swing.plaf.BorderUIResource.LineBorderUIResource( |
| | | ColorAndFontConstants.pressedForeground, 1); |
| | | } |
| | | focusBorder = BorderFactory.createCompoundBorder( |
| | | UIManager.getBorder("List.focusCellHighlightBorder"), buttonBorder); |
| | | highlightBorder, buttonBorder); |
| | | }; |
| | | |
| | | private static final Color defaultBackground = |