当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Is there a way to enforce layout constraints between components in different panels?

问题描述:

This is a java SWING question. I have strict specifications on how components in my UI must be aligned. I can achieve this by using GridBagLayout and putting all my components in the same panel. However, this approach is going to make the code difficult to maintain. Ideally I'd like to be able to put logically distinct components in separate panels and specify some alignment constraints. Is there a way to accomplish this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: