1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package NET.worlds.console;
import java.awt.Color;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.Panel;
class InsetPanel extends Panel {
private static final long serialVersionUID = -8045587676805647253L;
private Insets insets;
InsetPanel(LayoutManager layout, int top, int left, int bottom, int right) {
super(layout);
this.init(top, left, bottom, right);
}
InsetPanel(int top, int left, int bottom, int right) {
this.init(top, left, bottom, right);
}
private void init(int top, int left, int bottom, int right) {
this.insets = new Insets(top, left, bottom, right);
this.setBackground(Color.black);
}
@Override
public Insets getInsets() {
return this.insets;
}
}
|