private void backButton4ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_backButton4ActionPerformed
   // TODO add your handling code here:
   userProcessContainer.remove(this);
   CardLayout layout = (CardLayout) userProcessContainer.getLayout();
   layout.previous(userProcessContainer);
 } // GEN-LAST:event_backButton4ActionPerformed
 private void jButton1ActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed
   // TODO add your handling code here:
   upcJPanel.remove(this);
   CardLayout card = (CardLayout) upcJPanel.getLayout();
   card.previous(upcJPanel);
 } // GEN-LAST:event_jButton1ActionPerformed
 public void actionPerformed(ActionEvent e) {
   if (e.getSource() == ctl) {
     this.menu();
   } else if (e.getSource() == exit) {
     exitPerform();
   } else if (e.getSource() == rank) {
     if (count != 0) {
       card.show(mainPanel, "four");
       rankPanel.setMemory(memory, count - 1);
       buttonPanel.removeAll();
       buttonPanel.setBounds(width - 200, height - 80, 190, 50);
       buttonPanel.add(exit);
       check = 4;
       count--;
     }
   } else if (e.getSource() == back) {
     if (secondPanel.clip != null) {
       secondPanel.clip.stop();
       System.out.printf("test");
     }
     check = 0;
     card.previous(mainPanel);
     buttonPanel.removeAll();
     ctl.setText("- Play -");
     buttonPanel.add(ctl);
     buttonPanel.add(rank);
     buttonPanel.add(exit);
     buttonPanel.setOpaque(false);
     buttonPanel.setBounds(width / 2 - 50, height / 2 - 50, 80, 100);
   }
 }
  private void backJButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_backJButtonActionPerformed

    userProcessContainer.remove(this);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);
  } // GEN-LAST:event_backJButtonActionPerformed
Beispiel #5
0
 private void backBtnActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_backBtnActionPerformed
   // if (firstNameField.getText().isEmpty()) return;
   // if (custIDField.getText().isEmpty()) return;
   java.awt.CardLayout cl = (java.awt.CardLayout) cards.getLayout();
   cl.previous(cards);
 } // GEN-LAST:event_backBtnActionPerformed
Beispiel #6
0
 private void prev1() {
   prevBtn.setEnabled(true);
   nextBtn.setEnabled(true);
   doneBtn.setEnabled(false);
   card.previous(pane);
   step--;
 }
 private void btnBackActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnBackActionPerformed
   // TODO add your handling code here:
   for (OrderItem item : order.getOrderItemList()) {
     item.getProduct().setAvailability(item.getProduct().getAvailability() + item.getQuantity());
   }
   userProcessContainer.remove(this);
   CardLayout layout = (CardLayout) userProcessContainer.getLayout();
   layout.previous(userProcessContainer);
 } // GEN-LAST:event_btnBackActionPerformed
  private void backJButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_backJButtonActionPerformed

    userProcessContainer.remove(this);
    Component[] componentArray = userProcessContainer.getComponents();
    Component component = componentArray[componentArray.length - 1];
    PersonWorkAreaJPanel dwjp = (PersonWorkAreaJPanel) component;
    dwjp.populateTable();
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);
  } // GEN-LAST:event_backJButtonActionPerformed
 private void anterior(java.awt.event.ActionEvent evt) { // GEN-FIRST:event_anterior
   CardLayout cl = (CardLayout) (this.cuerpo.getLayout());
   switch (this.estado) {
     case 2:
       this.lSubtitulo.setText(SUBTITULOPASO1);
       this.lPaso.setText(PASO1);
       this.bAnterior.setEnabled(false);
       this.estado--;
       cl.previous(this.cuerpo);
       break;
   }
 } // GEN-LAST:event_anterior
  private void btnBackActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnBackActionPerformed

    userProcessContainer.remove(this);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);

    managePanel.refreshTable();

    //        userProcessContainer.remove(this);
    //        Component[] componentArray = userProcessContainer.getComponents();
    //        Component component = componentArray[componentArray.length  - 1];
    //
    //        ManageProductCatalogJPanel manageProductCatalog =
    // (ManageProductCatalogJPanel)component;
    //        manageProductCatalog.refreshTable();
    //
    //        CardLayout layout = (CardLayout)userProcessContainer.getLayout();
    //        layout.previous(userProcessContainer);
  } // GEN-LAST:event_btnBackActionPerformed