/* * The MIT License * * Copyright 2015 Jaafar EL Bakkali. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package ersn.openmc; import java.awt.Color; /** * * @author elbakkali */ public class ERSNOpenMC_About extends javax.swing.JFrame { /** * Creates new form about */ public ERSNOpenMC_About() { initComponents(); getContentPane().setBackground(new Color(0, 0, 128)); } /** * 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">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jToolBar1 = new javax.swing.JToolBar(); jColorChooser1 = new javax.swing.JColorChooser(); btn_close = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jToolBar1.setRollover(true); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("ERSN-OpenMC_about"); setBackground(java.awt.SystemColor.activeCaptionText); setUndecorated(true); setResizable(false); getContentPane().setLayout(new java.awt.GridBagLayout()); btn_close.setBackground(java.awt.SystemColor.info); btn_close.setText("close"); btn_close.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.orange)); btn_close.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btn_close.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); btn_close.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_closeActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 6; gridBagConstraints.ipadx = 86; gridBagConstraints.insets = new java.awt.Insets(24, 0, 18, 0); getContentPane().add(btn_close, gridBagConstraints); jLabel2.setBackground(java.awt.SystemColor.activeCaption); jLabel2.setFont(new java.awt.Font("Trebuchet MS", 1, 36)); // NOI18N jLabel2.setForeground(java.awt.Color.orange); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel2.setText("ERSN-OPENMC v1.5"); jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 6; getContentPane().add(jLabel2, gridBagConstraints); jLabel1.setBackground(java.awt.SystemColor.activeCaption); jLabel1.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.highlight")); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel1.setText("This project was developed by Jaafar EL Bakkali & Tarek EL Bardouni "); jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); getContentPane().add(jLabel1, gridBagConstraints); jLabel3.setBackground(java.awt.SystemColor.activeCaption); jLabel3.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.highlight")); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel3.setText("Departement of Physics, Laboratory of Radiation & Nuclear Systems"); jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); getContentPane().add(jLabel3, gridBagConstraints); jLabel4.setBackground(java.awt.SystemColor.activeCaption); jLabel4.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.highlight")); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel4.setText("University Abdelmalek Essaadi, Faculty of sciences Tetouan (Morocco)"); jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 0); getContentPane().add(jLabel4, gridBagConstraints); jLabel5.setBackground(java.awt.SystemColor.activeCaption); jLabel5.setFont(new java.awt.Font("Ubuntu Light", 0, 14)); // NOI18N jLabel5.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.highlight")); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel5.setText("Contact us : bahmedj@gmail.com ; tarekbardouni@uae.ma"); jLabel5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 6; gridBagConstraints.ipady = 2; gridBagConstraints.insets = new java.awt.Insets(18, 0, 0, 0); getContentPane().add(jLabel5, gridBagConstraints); jLabel7.setBackground(java.awt.SystemColor.activeCaption); jLabel7.setFont(new java.awt.Font("Ubuntu Light", 1, 14)); // NOI18N jLabel7.setForeground(new java.awt.Color(246, 255, 41)); jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel7.setText("Download url: https://github.com/tarekbardouni/ERSN-OpenMC/releases"); jLabel7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.gridwidth = 6; gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0); getContentPane().add(jLabel7, gridBagConstraints); jLabel8.setFont(new java.awt.Font("Century Schoolbook L", 1, 10)); // NOI18N jLabel8.setForeground(java.awt.SystemColor.info); jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel8.setText("Copyleft 2015-2017, J. El Bakkali & T. El Bardouni, MIT License"); jLabel8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 6; gridBagConstraints.ipady = 14; gridBagConstraints.insets = new java.awt.Insets(0, 49, 0, 44); getContentPane().add(jLabel8, gridBagConstraints); pack(); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void btn_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_closeActionPerformed // TODO add your handling code here: this.show(false); }//GEN-LAST:event_btn_closeActionPerformed /** * @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(ERSNOpenMC_About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(ERSNOpenMC_About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(ERSNOpenMC_About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(ERSNOpenMC_About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new ERSNOpenMC_About().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton btn_close; private javax.swing.JColorChooser jColorChooser1; 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 jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JToolBar jToolBar1; // End of variables declaration//GEN-END:variables }