private void btnProximoActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnProximoActionPerformed Detetive detetive = caso.getDetetive(); caso = new Caso(); caso.setDetetive(detetive); this.setVisible(false); JInternalFrame[] lista = desktop.getAllFrames(); for (JInternalFrame interno : lista) { try { interno.setClosed(true); } catch (PropertyVetoException ex) { Logger.getLogger(dialogFim.class.getName()).log(Level.SEVERE, null, ex); } } ProximoCaso tela = new ProximoCaso(desktop); tela.caso = caso; desktop.add(tela); tela.show(); this.setVisible(false); } // GEN-LAST:event_btnProximoActionPerformed
private void formInternalFrameOpened( javax.swing.event.InternalFrameEvent evt) { // GEN-FIRST:event_formInternalFrameOpened proximoCaso(caso.getDetetive()); } // GEN-LAST:event_formInternalFrameOpened