Carol.Kar
Carol.Kar

Reputation: 5355

MigLayout - using multiple constraints

I want to my panel a table which growx and wraps the next component. I did that:

JPanel panel = new JPanel(new MigLayout(""));       
panel.add(showTable(), "growx wrap");

However, I am getting the error: Illegal Constraint: 'growx wrap'

I appreciate your reply!

Upvotes: 1

Views: 626

Answers (1)

Baxter_The_Proud
Baxter_The_Proud

Reputation: 238

panel.add(showTable(), "growx, wrap");

Note the comma.

Upvotes: 4

Related Questions