Fill Entire Cell With Two Components Using MigLayout

I have two components which I would like to both fill the same cell in a MigLayout:

For example, I want to give both components constraints something like this:

cell 0 0 1 1, push, grow

and have them both be placed exactly over top of one another inside cell 0 0

(If I just use the code above, they end up sharing space side-by-side in the cell)

What do I have to add to the MigLayout constraints to make this happen?


I ended up solving the issue by giving the first component an id in MigLayout:

cell 0 0 1 1, push, grow, id myid

Then explicitly positioned the second component on top of the first using the first component's bounds (referenced using the id):

pos myid.x myid.y myid.x2 myid.y2

Need Your Help

lightswitch LINQ PreprocessQuery

c# linq silverlight visual-studio-lightswitch

I use the PreprocessQuery method to extend a query in lightswitch.

How to remove all lines in a file containing a variable, only when located on a line somewhere between braces in BASH?

bash sed

I am trying to remove all of the matches of $word from a file, but only on lines where $word is placed somewhere within { and } which also appear on the same line, e.g.:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.