英文:
How to resize a jpanel when another jpanel is resized
问题
它有两个JPanels。第一个有侧边栏,另一个有标题栏。
我希望当隐藏第一个面板时,另一个容器可以被重新调整大小。
例如,如下图所示:
隐藏菜单之前:
隐藏菜单之后:
如何实现这个效果呢?
英文:
It has two JPanels. The first has a sidebar and the other has a title bar.
I want When hiding the first one, the other container to be resized.
For example as in the following image :
Before hiding the Menu:
After hiding the Menu:
How can this be done?
专注分享java语言的经验与见解,让所有开发者获益!
评论