Java - JPanel with margins and JTextArea inside

后端 未结 1 1898
旧巷少年郎
旧巷少年郎 2021-02-19 13:51

I want to create something like this:

\"Centered

Main panel has its margins (x), and TextArea i

1条回答
  •  [愿得一人]
    2021-02-19 14:34

    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

    0 讨论(0)
提交回复
热议问题