Insets insets = parent.getInsets();
Border border = getBorder(); Insets insets; if(border == null) insets = new Insets(0,0,0,0); else { insets = getBorder().getBorderInsets( JEditTextArea.this); }
		public void layoutContainer(Container parent)		{			Dimension size = parent.getSize();			Insets insets = parent.getInsets();			int itop = insets.top;			int ileft = insets.left;			int ibottom = insets.bottom;			int iright = insets.right;			int rightWidth = right.getPreferredSize().width;			int leftWidth = left.getPreferredSize().width;			int bottomHeight = bottom.getPreferredSize().height;			int centerWidth = size.width - leftWidth - rightWidth -				ileft - iright;			int centerHeight = size.height - bottomHeight - itop -				ibottom;			left.setBounds(				ileft,				itop,				leftWidth,				centerHeight);			center.setBounds(				ileft + leftWidth,				itop,				centerWidth,				centerHeight);			right.setBounds(				ileft + leftWidth + centerWidth,				itop,				rightWidth,				centerHeight);			bottom.setBounds(				ileft,				itop + centerHeight,				size.width - rightWidth - ileft - iright,				bottomHeight);		}