'How do I change the layout of text areas in java swing
I started making this web page for a project and this is what it looks like so far:
but I want to place the text areas as one on top of the other rather than side to side
How i want it to look:
can someone help me out please
Solution 1:[1]
Set the layout of your panel (or whatever component that contains your textareas) to GridLayout with 4 rows and 1 column. This will put all 4 components (2 Labels and 2 TextAreas one after another in a column)
https://docs.oracle.com/javase/tutorial/uiswing/layout/grid.html
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vivek |


