⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kunststoffinternalframetitlepane.java

📁 java写的多功能文件编辑器
💻 JAVA
字号:
package 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);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -