I assume you're using Swing. I only have experience with SWT, but there, widgets arranged in a GridLayout and given no GridData object (or one not specifying grab behavior) will not change their size ...
当前正在显示可能无法访问的结果。
隐藏无法访问的结果当前正在显示可能无法访问的结果。
隐藏无法访问的结果