frame 中 有一个panel2 , 然后点击 按钮 下一步 ,会将panel3 替换panel2 ,但是我实现过程中发现,
panel1 确实不见了, 可是panel2 却始终没出现。求大神指点。 private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
NewProject22 np2 = new NewProject22();//此为panel3
np2.setVisible(true);
jPanel2.setVisible(false);
jPanel1.add(np2);//panel1 为frame 的主panel
jPanel1.repaint();//重绘的,这个代码我不知该怎么写。

}