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

📄 scrollbarborder.java

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 JAVA
字号:
import javax.swing.*;import javax.swing.border.*;import java.awt.*;public class ScrollBarBorder extends AbstractBorder{    Color color = Color.darkGray;    public ScrollBarBorder(Color colr)    {	color = colr;    }    public ScrollBarBorder(){}        public void paintBorder(Component c, Graphics g, int x, int y,			    int width, int height)    {	Insets insets = getBorderInsets(c);	g.setColor(Color.darkGray);	g.fillRect(x, y, insets.left, height);	g.fillRect(x, y + height - insets.bottom, width, insets.bottom);	g.fillRect(x + width - insets.right, y, insets.right, height);    }    public boolean isBorderOpaque(){ return true;}    public Insets getBorderInsets(Component c)    {	return new Insets(0,1,1,1);    }}

⌨️ 快捷键说明

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