Selasa, 23 Mei 2023

Menu Utama Aplikasi Penerapan Enkripsi & Dekripsi Pada JAVA

package sonienkripsi;
 
import java.awt.*;
import java.io.*;
import java.net.*;
 
/**
 *
 * @author montox
 */
public class NoxMenuUtama extends javax.swing.JFrame {
 
    /**
     * @author Soni Hendarkanto on Apache NetBeans IDE 16 with Linux Mint 21.1
     * "VERA" Cinnamon Desktop Edition
     * My github: https://github.com/Soni-Hendar-Kip/SoniEnkripsi
     */
    public NoxMenuUtama() {
        initComponents();
    }            
 
    private void BtMD5_ActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        new NoxEnkripsiMD5_SHA3().setVisible(true);
    }                                      
 
    private void BtAES_ActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        new NoxAES().setVisible(true);
    }                                      
 
    private void BtAES_Key_ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        // TODO add your handling code here:
        new NoxAES_WIthKey().setVisible(true);
    }                                          
 
    private void TxGithub_MouseClicked(java.awt.event.MouseEvent evt) {                                       
        // TODO add your handling code here:
        TxGithub_.setForeground(Color.red);
        try {
            Desktop desktop = Desktop.getDesktop();
            URI url = new URI("https://github.com/Soni-Hendar-Kip/SoniEnkripsi");
            if (Desktop.isDesktopSupported()) {
                try {
                    desktop.browse(url);
                } catch (IOException ex) {
                    System.out.println(ex);
                }
            }
        } catch (URISyntaxException ex) {
            System.out.println(ex);
        }
    }                                      
 
    private void TxGithub_MouseEntered(java.awt.event.MouseEvent evt) {                                       
        // TODO add your handling code here:
        TxGithub_.setForeground(Color.red);
    }                                      
 
    private void TxGithub_MouseExited(java.awt.event.MouseEvent evt) {                                      
        // TODO add your handling code here:
        TxGithub_.setForeground(Color.blue);
    }                                     
 
    private void BtAES_Key_1ActionPerformed(java.awt.event.ActionEvent evt) {                                            
        // TODO add your handling code here:
        new NoxAES_WIthKey2().setVisible(true);
    }                                           
 
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(NoxMenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(NoxMenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(NoxMenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(NoxMenuUtama.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
 
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new NoxMenuUtama().setVisible(true);
            }
        });
    }
 
    // Variables declaration - do not modify                     
    private javax.swing.JButton BtAES_;
    private javax.swing.JButton BtAES_Key_;
    private javax.swing.JButton BtAES_Key_1;
    private javax.swing.JButton BtMD5_;
    private javax.swing.JLabel TxGithub_;
    private javax.swing.Box.Filler filler1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration                   
}
 





Tidak ada komentar:

Posting Komentar