Example usage for java.awt CardLayout next

List of usage examples for java.awt CardLayout next

Introduction

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

Prototype

public void next(Container parent) 

Source Link

Document

Flips to the next card of the specified container.

Usage

From source file:UserInterface.SecurityAdministratorRole.SecurityAdministratorWorkArea.java

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

    ManageSOrganizationJPanel manageSOrganizationJPanel = new ManageSOrganizationJPanel(userProcessContainer,
            securityAuthorityEnterprise.getOrganizationDirectory());
    userProcessContainer.add("ManageSOrganizationJPanel", manageSOrganizationJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
}

From source file:UserInterface.SecurityAdministratorRole.SecurityAdministratorWorkArea.java

private void userJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_userJButtonActionPerformed
    // TODO add your handling code here:
    ManageSUserAccountJPanel muSajp = new ManageSUserAccountJPanel(userProcessContainer,
            securityAuthorityEnterprise);
    userProcessContainer.add("ManageSUserAccountJPanel", muSajp);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
}

From source file:userInterface.cdcRole.OverviewJPanel.java

private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
    PhdEnterprise p = (PhdEnterprise) jComboBox1.getSelectedItem();
    JFreeChart jfreechart1 = createChart1(createDataset1(p));
    ChartPanel chartpanel1 = new ChartPanel(jfreechart1);
    chartpanel1.setPreferredSize(new Dimension(1000, 540));
    jPanel1.add(chartpanel1);//from  w  ww .  ja  va  2  s  . co m
    CardLayout layout1 = (CardLayout) jPanel1.getLayout();
    layout1.next(jPanel1);
    //populate(p);
}

From source file:UserInterface.CustomerRole.ViewProfileJPanel.java

private void changeBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_changeBtnActionPerformed
    ChangePasswordJPanel changePasswordCustJPanel = new ChangePasswordJPanel(userProcessContainer, account);
    userProcessContainer.add("changePasswordCustJPanel", changePasswordCustJPanel);
    CardLayout layout = (CardLayout) userProcessContainer.getLayout();
    layout.next(userProcessContainer);
}

From source file:userInterface.StateAdminRole.DecisionChartJPanel.java

public DecisionChartJPanel(JPanel userProcessContainer, Enterprise e, Network n) {
    initComponents();//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    this.userProcessContainer = userProcessContainer;
    this.e = (PhdEnterprise) e;
    this.n = n;//from  w  ww. j  ava  2 s.c o m
    JFreeChart jfreechart = createChart(createDataset());
    Rotator rotator = new Rotator((PiePlot3D) jfreechart.getPlot());
    rotator.start();
    ChartPanel chartpanel = new ChartPanel(jfreechart);
    chartpanel.setPreferredSize(new Dimension(1000, 540));
    pieChartPanel.add(chartpanel);
    CardLayout layout = (CardLayout) pieChartPanel.getLayout();
    layout.next(pieChartPanel);

    populate();
}

From source file:UserInterface.AuthorityWorkArea.DrugAnalysisJPanel.java

private void viewRequestjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewRequestjButtonActionPerformed
    int selectedRow = medicineAreajTable.getSelectedRow();
    if (selectedRow < 0) {
        JOptionPane.showMessageDialog(null, "Please select a row to view the request");
        return;//from   ww w.j av a 2  s. c  om
    }
    DrugApprovalRequest dar = (DrugApprovalRequest) medicineAreajTable.getValueAt(selectedRow, 6);
    Drug drug = (Drug) medicineAreajTable.getValueAt(selectedRow, 2);
    ViewRequestJPanel panel = new ViewRequestJPanel(upc, dar, drug);
    upc.add("View  Req", panel);
    CardLayout layout = (CardLayout) upc.getLayout();
    layout.next(upc);
}

From source file:GUI.Starts.java

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    CardLayout cardLayout = (CardLayout) (jPanel2.getLayout());
    cardLayout.next(jPanel2);

    double size = doubleArray.length;
    jLabel8.setText(String.valueOf(mse));
    jLabel9.setText(String.valueOf(scc));
    jLabel11.setText(String.valueOf(size));
}

From source file:UserInterface.DoctorAdmin.TakeRequestJPanel.java

private void btnSeeDetailsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSeeDetailsActionPerformed
    // TODO add your handling code here:

    int selectedRow = tblDocWorkRequest.getSelectedRow();

    if (selectedRow >= 0) {
        pdwrequest = (PatientDoctorWorkRequest) tblDocWorkRequest.getValueAt(selectedRow, 0);
        pdwrequest.setStatus("Processing");
        pdwrequest.setReceiver(assignedDoctor.getUserAccount());
        assignedPatient = pdwrequest.getAssignedPatient();
        DoctorAdminConfirmRequestJPanel dcrjp = new DoctorAdminConfirmRequestJPanel(userProcessContainer,
                system, enterprise, account, pdwrequest);
        userProcessContainer.add("processWorkRequestJPanel", dcrjp);
        CardLayout layout = (CardLayout) userProcessContainer.getLayout();
        layout.next(userProcessContainer);
    } else {//  w w w.j av  a2  s  .c  om
        JOptionPane.showMessageDialog(null, "Please select a row from the table to process");
    }

}

From source file:userInterface.StateAdminRole.DecisionChartJPanel.java

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    DecisionCartJPanel2 h = new DecisionCartJPanel2(userProcessContainer, e);
    CardLayout l = (CardLayout) userProcessContainer.getLayout();
    userProcessContainer.add("OutgoingPaymentJPanel", h);
    l.next(userProcessContainer);
}

From source file:UserInterface.EmployeeViewArea.ViewIssuesStatisticsJPanel.java

private void btnSendEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSendEmailActionPerformed
    // TODO add your handling code here:

    CardLayout cardLayout = (CardLayout) userProcessContainer.getLayout();
    EmailJPanel ejp = new EmailJPanel(userProcessContainer);
    userProcessContainer.add("ejp", ejp);
    cardLayout.next(userProcessContainer);

}