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