📄 filler.java
字号:
/* * @(#)Filler.java 5.1 * */package CH.ifa.draw.util;import java.awt.*;/** * A component that can be used to reserve white space in a layout. */public class Filler extends Canvas { private int fWidth; private int fHeight; private Color fBackground; public Filler(int width, int height) { this(width, height, null); } public Filler(int width, int height, Color background) { fWidth = width; fHeight = height; fBackground = background; } public Dimension getMinimumSize() { return new Dimension(fWidth, fHeight); } public Dimension getPreferredSize() { return getMinimumSize(); } public Color getBackground() { if (fBackground != null) return fBackground; return super.getBackground(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -