我有一个程序充当我正在开发的游戏(约翰·阿里夫的种子船的升级版)的主游戏屏幕。我放置了一个按钮来帮助我模拟一些程序执行,该程序以后会自动发生。每当我不需要按钮时,我都会//简单地提到它。
最近我迁移到了一个新系统,但是现在取消注释这些行后,该按钮不再显示在程序中
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
……jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()……
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(119, 119, 119)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton1)…….