I want to create something like this:
Main panel has its margins (x), and TextArea i
there are two ways
use propers Borders, in this case EmptyBorders
use proper LayoutManager, BorderLayout(int horizontalGap, int verticalGap), GridLayout(int rows, int cols, int hgap, int vgap),
easiest way would be use EmptyBorders
EmptyBorders