Reputation: 1239
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
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