Peaches491
Peaches491

Reputation: 1239

Cells sized independently of rows MigLayout

Poorly rendered graphical representation of the picture in my head

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.

Any ideas would be most appreciated

Upvotes: 1

Views: 491

Answers (1)

Chris Dennett
Chris Dennett

Reputation: 22721

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.

Upvotes: 2

Related Questions