Inspiration to save those who put them self in danger for the seek of their family living

What it does it sends an emergency alarm via sms

How I built it via netbeans

Challenges I ran into java related challenges

Accomplishments that I'm proud of building an app from scratch

What I learned I learned more about applications and what should i do in emergency cases

What's next for LifeSaver connecting it with a wearable band and take it to the real world

Here is a snap of our code "welcome page"

import java.awt.Toolkit; import java.awt.event.WindowEvent;

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor. / /* *
  • @author maithaalzeyoudi */ public class Welcome extends javax.swing.JFrame {

    /**

    • Creates new form Welcome */ public Welcome() { initComponents(); }

    public void close() { WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING); Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);

    }

    /**

    • 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") //
      private void initComponents() {

      jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jPasswordField1 = new javax.swing.JPasswordField(); jLabel5 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel();

      setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBounds(new java.awt.Rectangle(500, 200, 0, 0));

      jPanel2.setLayout(null);

      jLabel1.setFont(new java.awt.Font("Oriya MN", 0, 12)); // NOI18N jLabel1.setText("Username:"); jPanel2.add(jLabel1); jLabel1.setBounds(60, 300, 70, 16);

      jLabel2.setFont(new java.awt.Font("Oriya MN", 0, 12)); // NOI18N jLabel2.setText("Password:"); jPanel2.add(jLabel2); jLabel2.setBounds(60, 340, 70, 16); jPanel2.add(jTextField1); jTextField1.setBounds(140, 300, 110, 26);

      jLabel3.setFont(new java.awt.Font("Oriya MN", 0, 36)); // NOI18N jLabel3.setText("LifeSaver"); jPanel2.add(jLabel3); jLabel3.setBounds(70, 220, 180, 40);

      jButton1.setFont(new java.awt.Font("Oriya MN", 0, 13)); // NOI18N jButton1.setText("Log in"); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } public void mouseExited(java.awt.event.MouseEvent evt) { jButton1MouseExited(evt); } }); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel2.add(jButton1); jButton1.setBounds(100, 410, 97, 29); jPanel2.add(jPasswordField1); jPasswordField1.setBounds(140, 330, 110, 26);

      jLabel5.setIcon(new javax.swing.ImageIcon("/Users/maithaalzeyoudi/Desktop/Workers copy.png")); // NOI18N jPanel2.add(jLabel5); jLabel5.setBounds(100, 110, 110, 110);

      jLabel4.setIcon(new javax.swing.ImageIcon("/Users/maithaalzeyoudi/Desktop/Alumni /blue-hires.jpg")); // NOI18N jLabel4.setMaximumSize(new java.awt.Dimension(200, 200)); jLabel4.setMinimumSize(new java.awt.Dimension(200, 200)); jPanel2.add(jLabel4); jLabel4.setBounds(-580, -10, 5846, 570);

      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(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE) .addContainerGap()) );

      pack(); }//

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    this.hide(); company s = new company(); s.setVisible(true); // close();

    }

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here: }

    private void jButton1MouseExited(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here: }

    /**

    • @param args the command line arguments / public static void main(String args[]) { / Set the Nimbus look and feel / // / 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(Welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //

      /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new Welcome().setVisible(true); } }); }

    // Variables declaration - do not modify
    private javax.swing.JButton jButton1; 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.JPanel jPanel2; private javax.swing.JPasswordField jPasswordField1; private javax.swing.JTextField jTextField1; // End of variables declaration
    }

Built With

Share this project:

Updates