|
What this is
Other links
The source codepackage com.incors.plaf.kunststoff; /* * This code was developed by Jerason Banes (jbanes@techie.com). * It is published under the terms of the GNU Lesser General Public License. */ import java.awt.*; import javax.swing.*; import javax.swing.plaf.metal.*; public class KunststoffInternalFrameTitlePane extends MetalInternalFrameTitlePane { public KunststoffInternalFrameTitlePane(JInternalFrame frame) { super(frame); } public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; // paint reflection Color colorReflection = KunststoffLookAndFeel.getComponentGradientColorReflection(); Color colorReflectionFaded = KunststoffUtilities.getTranslucentColor(colorReflection, 0); Rectangle rectReflection = new Rectangle(0, 1, this.getWidth(), this.getHeight()/2);; KunststoffUtilities.drawGradient(g, colorReflection, colorReflectionFaded, rectReflection, true); // paint shadow Color colorShadow = KunststoffLookAndFeel.getComponentGradientColorShadow(); Color colorShadowFaded = KunststoffUtilities.getTranslucentColor(colorShadow, 0); Rectangle rectShadow = new Rectangle(0, this.getHeight()/2, this.getWidth(), this.getHeight()/2+1); KunststoffUtilities.drawGradient(g, colorShadowFaded, colorShadow, rectShadow, true); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.