问题
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?
回答1:
Use GridBagLayout instead.
来源:https://stackoverflow.com/questions/9219886/java-swing-gridlayout-cell-span