开发者

Cells sized independently of rows MigLayout

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜