首页上一页 1 下一页尾页 3 条记录 1/1页
请问《Java开发典型模块大全》中的一个问题
发表在Java图书答疑
2010-05-31
是否精华
是
否
版块置顶:
是
否
在该书的文件批量处理模块中,很多的java文件中有如下的代码:
该书没有对这种代码的讲解,这是什么啊?好像不是人写的呀?
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
jPanelLayout.setHorizontalGroup(
jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment
.LEADING)
.addGroup(jPanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.TRAILING)
.addComponent(close)
.addGroup(jPanelLayout.createSequentialGroup()
.addComponent(messagejLabel, javax.swing.GroupLayout.P
REFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERR
ED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(29, Short.MAX_VALUE))
);
jPanelLayout.setVerticalGroup(
jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment
.LEADING)
.addGroup(jPanelLayout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.BASELINE)
.addComponent(messagejLabel, javax.swing.GroupLayout.PREFE
RRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_S
IZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(close)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.M
AX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getConten
tPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.M
AX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE, java
x.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
}
该书没有对这种代码的讲解,这是什么啊?好像不是人写的呀?
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
jPanelLayout.setHorizontalGroup(
jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment
.LEADING)
.addGroup(jPanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.TRAILING)
.addComponent(close)
.addGroup(jPanelLayout.createSequentialGroup()
.addComponent(messagejLabel, javax.swing.GroupLayout.P
REFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERR
ED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(29, Short.MAX_VALUE))
);
jPanelLayout.setVerticalGroup(
jPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment
.LEADING)
.addGroup(jPanelLayout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(jPanelLayout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.BASELINE)
.addComponent(messagejLabel, javax.swing.GroupLayout.PREFE
RRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_S
IZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(close)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.M
AX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getConten
tPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.M
AX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addComponent(jPanel, javax.swing.GroupLayout.PREFERRED_SIZE, java
x.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
}