Insets insets = getInsets();
Border border = getBorder(); Insets insets; if(border == null) insets = new Insets(0,0,0,0); else { insets = getBorder().getBorderInsets( JEditTextArea.this); }
		public Dimension preferredLayoutSize(Container parent)		{			Dimension dim = new Dimension();			Insets insets = getInsets();			dim.width = insets.left + insets.right;			dim.height = insets.top + insets.bottom;			Dimension leftPref = left.getPreferredSize();			dim.width += leftPref.width;			Dimension centerPref = center.getPreferredSize();			dim.width += centerPref.width;			dim.height += centerPref.height;			Dimension rightPref = right.getPreferredSize();			dim.width += rightPref.width;			Dimension bottomPref = bottom.getPreferredSize();			dim.height += bottomPref.height;			return dim;		}