1 19 24 25 package org.netbeans.swing.plaf.winxp; 26 27 import org.netbeans.swing.plaf.LFCustoms; 28 29 import javax.swing.*; 30 import javax.swing.border.AbstractBorder ; 31 import java.awt.*; 32 33 37 class EditorToolbarBorder extends AbstractBorder { 38 private static final Insets insets = new Insets(1, 0, 1, 0); 39 40 public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { 41 Color borderC = UIManager.getColor (LFCustoms.SCROLLPANE_BORDER_COLOR); 42 g.setColor(borderC); 43 g.drawLine(x, y + h - 1, x + w - 1, y + h - 1); 44 } 45 46 public Insets getBorderInsets(Component c) { 47 return insets; 48 } 49 } 50 | Popular Tags |