开发者

Cells sized independently of rows MigLayout

开发者 https://www.devze.com 2023-03-10 00:06 出处:网络
So I am designing a rather simple layout for an item manager program which i am making in Java with Swing.

Cells sized independently of rows MigLayout

So I am designing a rather simple layout for an item manager program which i am making in Java with Swing.

Typically, the cells light colored row would all stretch down to meet the blue. However, I am curious to know if you can enable cells to be sized independently of their rows.开发者_如何学Python

Any ideas would be most appreciated


Yeah, it's possible. Use unrel as a row height constraint. See the cheat sheet for more details. However, I'd really advise a separate JPanel per column, for simplicity reasons. You can use insets 0 as a layout constraint here if you don't like the insets.

0

精彩评论

暂无评论...
验证码 换一张
取 消