insetspanel.java
来自「用java语言编写的日历源码」· Java 代码 · 共 57 行
JAVA
57 行
package at.ac.uni_linz.tk.vchat;
import java.awt.*;
/**
* Extends a normVec Panel's functionality with methods for defining margins.
*
* @author Arno Huetter
* (C)opyright by the Institute for Computer Science, Telecooperation Department, University of Linz
*/
public class InsetsPanel extends Panel {
Insets insets;
public InsetsPanel() {
this(0, 0, 0, 0);
}
/**
* Constructs the InsetsPanel.
*
* @param top the inset from the top
* @param left the inset from the left
* @param bottom the inset from the bottom
* @param right the inset from the right
*/
public InsetsPanel(int top, int left, int bottom, int right) {
super();
insets = new Insets(top, left, bottom, right);
}
/**
* Constructs the InsetsPanel.
*
* @param insetsParam the Insets
*/
public InsetsPanel(Insets insetsParam) {
super();
insets = insetsParam;
}
/**
* Determines the Insets, which indicate the size of the Container's border.
*/
public Insets getInsets() {
return insets;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?