标题:GrouopLayout这个布局我不是很懂,求帮助
只看楼主
枫xby
Rank: 5Rank: 5
等 级:职业侠客
威 望:8
帖 子:82
专家分:371
注 册:2014-10-19
结帖率:71.43%
 问题点数:0 回复次数:1 
GrouopLayout这个布局我不是很懂,求帮助
各位英雄好汉,能帮我分析一下这段代码吗?

GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(
                GroupLayout.Alignment.LEADING).addGap(0, 800,
                Short.MAX_VALUE).addGroup(
                layout.createParallelGroup(
                        GroupLayout.Alignment.LEADING).addGroup(
                        layout.createSequentialGroup().addGap(0, 0,
                                Short.MAX_VALUE).addComponent(jPanel4,
                                GroupLayout.PREFERRED_SIZE, 795,
                                GroupLayout.PREFERRED_SIZE).addGap(
                                0, 0, Short.MAX_VALUE))));
        layout.setVerticalGroup(layout.createParallelGroup(
                GroupLayout.Alignment.LEADING).addGap(0, 460,
                Short.MAX_VALUE).addGroup(
                layout.createParallelGroup(
                        GroupLayout.Alignment.LEADING).addGroup(
                        layout.createSequentialGroup().addGap(0, 0,
                                Short.MAX_VALUE).addComponent(jPanel4,
                                GroupLayout.PREFERRED_SIZE, 424,
                                GroupLayout.PREFERRED_SIZE).addGap(
                                0, 0, Short.MAX_VALUE))));
搜索更多相关主题的帖子: 英雄好汉 layout 
2015-07-01 16:34
_c_c
Rank: 1
等 级:新手上路
帖 子:34
专家分:0
注 册:2014-3-26
得分:0 
这代码哪来的?好明显用.form功能做出来的
2015-07-28 01:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-454944-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.673128 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved