All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.objects.acroforms.gui.certificates.General Maven / Gradle / Ivy

/*
 * ===========================================
 * Java Pdf Extraction Decoding Access Library
 * ===========================================
 *
 * Project Info:  http://www.idrsolutions.com
 * Help section for developers at http://www.idrsolutions.com/support/
 *
 * (C) Copyright 1997-2017 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
 @LICENSE@
 *
 * ---------------
 * General.java
 * ---------------
 */

package org.jpedal.objects.acroforms.gui.certificates;

public class General extends javax.swing.JPanel {

    /**
     * Creates new form General
     */
    General() {
        initComponents();
    }

    public void setValues(final String name, final String notBefore, final String notAfter) {
        // TODO Auto-generated method stub
        issuedToBox.setText(name);
        validFromBox.setText(notBefore);
        validToBox.setText(notAfter);
    }

    /**
     * This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        validToBox = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        issuedToBox = new javax.swing.JLabel();
        validFromBox = new javax.swing.JLabel();

        setLayout(null);

        jLabel1.setText("Valid to:");
        add(jLabel1);
        jLabel1.setBounds(10, 70, 80, 20);
        add(validToBox);
        validToBox.setBounds(80, 70, 310, 20);

        jLabel3.setText("Valid from:");
        add(jLabel3);
        jLabel3.setBounds(10, 40, 80, 20);

        jLabel4.setText("Issued to:");
        add(jLabel4);
        jLabel4.setBounds(10, 10, 80, 20);
        add(issuedToBox);
        issuedToBox.setBounds(80, 10, 310, 20);
        add(validFromBox);
        validFromBox.setBounds(80, 40, 310, 20);
    } // //GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel issuedToBox;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel validFromBox;
    private javax.swing.JLabel validToBox;
    // End of variables declaration//GEN-END:variables
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy