Я собираюсь создать графический интерфейс, который показывает три JToolBars над большим JPanel. Эти панели инструментов коллективно очень большие, поэтому я использую FlowLayout, чтобы они могли переноситься на следующую строку, если они достигли границы JFrame. Проблема в том, что когда они переносятся на следующую строку, они становятся скрытыми от JPanel ниже. Я бы хотел, чтобы JPanel, содержащий панели инструментов, вырос достаточно, чтобы показать все панели инструментов.
Есть ли способ сделать это? Или есть ли другой способ сделать эти панели инструментов видимыми?