Java Swing GridLayout "Cell span"?

HunderingThooves picture HunderingThooves · Feb 9, 2012 · Viewed 22.1k times · Source

Is there a way to make a single element in a Grid layout take up more than 1 location in a grid. Example: I want to create a textbox that takes up an entire grid row, is there some way to do this?

Answer

Joop Eggen picture Joop Eggen · Feb 10, 2012

Use GridBagLayout instead.