Example usage for java.awt CardLayout previous

List of usage examples for java.awt CardLayout previous

Introduction

In this page you can find the example usage for java.awt CardLayout previous.

Prototype

public void previous(Container parent) 

Source Link

Document

Flips to the previous card of the specified container.

Usage

From source file:Interface.ApplicationAdmin.Analytics.java

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed

    container.remove(this);
    CardLayout layout = (CardLayout) container.getLayout();
    layout.previous(container);
}

From source file:userinterface.HealthAnalystRole.ViewReportJPanel.java

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    // TODO add your handling code here:
    userProcessContainer.remove(this);
    Component[] componentArray = userProcessContainer.getComponents();
    Component component = componentArray[componentArray.length - 1];
    HealthAnalystWorkAreaJPanel hawjp = (HealthAnalystWorkAreaJPanel) component;
    hawjp.populateRequestTable();/*from  ww w  . j a  v a2s . com*/
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);

}

From source file:StoreAdmin.ManageStoreJPanel.java

private void btnbackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnbackActionPerformed
    upc.remove(this);
    CardLayout layout = (CardLayout) upc.getLayout();
    layout.previous(upc);
}

From source file:userInteface.Patient.ManageVitalSignsJPanel.java

private void backJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backJButtonActionPerformed
    // TODO add your handling code here:
    userProcessContainer.remove(this);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);
}

From source file:UserInterfaces.HAdministration.BloodReportJPanel.java

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
    container.remove(this);
    CardLayout cl = (CardLayout) container.getLayout();
    cl.previous(container);
}

From source file:userInterface.DistrictAdminRole.MonitorNeighborhoodAreasJPanel.java

private void backJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backJButtonActionPerformed
    userProcessContainer.remove(this);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);
}

From source file:UserInterface.ViewPatientJPanel.java

private void btnBackToPSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBackToPSActionPerformed
    userProcessContainer.remove(this);
    /* Component[] components = userProcessContainer.getComponents();
     Component component = components[components.length - 1];
     ManagePersonPatientJPanel manageAccountJPanel = (ManagePersonPatientJPanel)component;
      manageAccountJPanel.refreshtable(); */
    //managePersonPatientJPanel.refreshtable();
    CardLayout cardLayout = (CardLayout) userProcessContainer.getLayout();
    cardLayout.previous(userProcessContainer);
}

From source file:userinterface.Citizen.CitizenWorkAreaJPanel.java

private void backButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backButtonActionPerformed
    userProcessContainer.remove(this);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(this.userProcessContainer);
}

From source file:userInterface.AuthorityOfficer.ProceedRequestJPanel.java

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];
    AuthorityOfficerWorkArea dwjp = (AuthorityOfficerWorkArea) component;
    dwjp.populateQueue();/*w w w  .  j  a v a  2  s  .  c o m*/
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.previous(userProcessContainer);
}