1
package com.incors.plaf.kunststoff;
4
* This code was developed by Jerason Banes (jbanes@techie.com).
5
* It is published under the terms of the GNU Lesser General Public License.
11
import javax.swing.plaf.metal.*;
13
public class KunststoffInternalFrameTitlePane extends MetalInternalFrameTitlePane {
15
public KunststoffInternalFrameTitlePane(JInternalFrame frame) {
19
public void paintComponent(Graphics g) {
20
super.paintComponent(g);
23
Color colorReflection = KunststoffLookAndFeel.getComponentGradientColorReflection();
24
Color colorReflectionFaded = KunststoffUtilities.getTranslucentColor(colorReflection, 0);
25
Rectangle rectReflection = new Rectangle(0, 1, this.getWidth(), this.getHeight()/2);;
26
KunststoffUtilities.drawGradient(g, colorReflection, colorReflectionFaded, rectReflection, true);
29
Color colorShadow = KunststoffLookAndFeel.getComponentGradientColorShadow();
30
Color colorShadowFaded = KunststoffUtilities.getTranslucentColor(colorShadow, 0);
31
Rectangle rectShadow = new Rectangle(0, this.getHeight()/2, this.getWidth(), this.getHeight()/2+1);
32
KunststoffUtilities.drawGradient(g, colorShadowFaded, colorShadow, rectShadow, true);