I am working on a java gui application hard coding without any netbeans help. I am using the box layout for my gui. My question is simple from what I see online boxlayout should stack elements on top of each other. However, I have a textarea(x,y) a toggle button and another textarea(x,y) when this is displayed there is a gap between my first text area and the toggle button and a gap between the toggle button and the 2nd textarea. Why are they not being stacked!
Thanks,
I am working on a java gui application hard coding without any netbeans help.
Share
Here’s an example of an SSCCE that tries to demonstrate your problem. Perhaps you can modify it to show us what’s going on: