/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Crytpo.java
*
* Created on Jun 30, 2011, 8:31:45 PM
*/
package web.base;
/**
*
* @author Chang
*/
public class Crytpo extends javax.swing.JFrame {
/** Creates new form Crytpo */
public Crytpo() {
initComponents();
}
/** 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
Welcome = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
RSA = new javax.swing.JButton();
Prime = new javax.swing.JButton();
SecretKey = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
Mersene = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
Welcome.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
Welcome.setText("Welcome to calculator");
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel1.setText("Please chose to check the cryptographic:");
RSA.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
RSA.setText("RSA");
RSA.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RSAActionPerformed(evt);
}
});
Prime.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
Prime.setText("Prime");
SecretKey.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
SecretKey.setText("Secret Key");
jButton1.setText("jButton1");
Mersene.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
Mersene.setText("Mersene");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(Welcome, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
.addGap(32, 32, 32))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addGap(41, 41, 41)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(RSA)
.addComponent(Prime))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 117, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Mersene)
.addComponent(SecretKey)))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addGap(29, 29, 29)
.addComponent(jLabel1)))
.addContainerGap(50, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(Welcome, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(Mersene)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(SecretKey)
.addComponent(Prime))
.addGap(91, 91, 91))
.addComponent(RSA)))
);
pack();
}// </editor-fold>
private void RSAActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Crytpo().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton Mersene;
private javax.swing.JButton Prime;
private javax.swing.JButton RSA;
private javax.swing.JButton SecretKey;
private javax.swing.JLabel Welcome;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
// End of variables declaration
}