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; } }