1 30 31 package com.jgoodies.looks.plastic; 32 33 import java.awt.Color ; 34 import java.awt.Dimension ; 35 import java.awt.Graphics ; 36 37 import javax.swing.plaf.basic.BasicSplitPaneDivider ; 38 import javax.swing.plaf.basic.BasicSplitPaneUI ; 39 40 41 49 final class PlasticSplitPaneDivider extends BasicSplitPaneDivider { 50 51 52 PlasticSplitPaneDivider(BasicSplitPaneUI ui) { 53 super(ui); 54 } 55 56 57 public void paint(Graphics g) { 58 Dimension size = getSize(); 59 Color bgColor = getBackground(); 60 61 if (bgColor != null) { 62 g.setColor(bgColor); 63 g.fillRect(0, 0, size.width, size.height); 64 } 65 66 73 74 super.paint(g); 76 } 77 78 133 } | Popular Tags |