Java swing GridLayout vertical constraint

Can I add components in GridLayout vertical? I mean, the next one is higher than the previous one?

thank you

Solution

No, no layout allows you to stack vertically from bottom to top, at least I know If you want to stack vertically, you can use GridLayout with a single column or @ r with a vertical axis_ 126_ 2419@Layout. By nesting panels and combining layouts, you can easily get what you need. For example, panels with vertical layout are all arranged in horizontal containers

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>