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