用WindowBuilder重写JPanels for eclipse [英] Overlap JPanels with WindowBuilder for eclipse

查看:192
本文介绍了用WindowBuilder重写JPanels for eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WindowBuilder Pro进行日食,我想要两个完全相互重叠的Jpanels。然后我可以根据选择的一个combox框来切换他们的可见性。当我在gui构建器中尝试并实现这一点时,第一个面板将被第二个面板移位。请问有什么建议吗?

I am using WindowBuilder Pro for eclipse, and I would like to have two Jpanels that perfectly overlap each other. I would then be able to toggle their visibilty based on the selection of a combox box. When I try and acheive this in the gui builder, the first panel gets displaced by the second panel. And advice please?

推荐答案


我希望有两个完全相互重叠的Jpanels。然后我可以根据选择一个combox框来切换他们的可见性

I would like to have two Jpanels that perfectly overlap each other. I would then be able to toggle their visibilty based on the selection of a combox box

请参阅:如何使用卡片布局进行正确的例子。

See: How to Use Card Layout for an example that does exactly this.

这篇关于用WindowBuilder重写JPanels for eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆