├── output.txt ├── LoginInfo.txt.txt ├── PassangerInfo.txt.txt ├── nbproject ├── private │ ├── config.properties │ ├── private.properties │ └── private.xml ├── genfiles.properties ├── project.xml └── project.properties ├── PassangerInfo.txt ├── manifest.mf ├── images ├── home.PNG ├── login.PNG ├── signup.PNG ├── adminhome.PNG ├── languages.PNG ├── passangerpass.PNG ├── adminfunctions.PNG ├── paymentprocess.PNG └── reservationprocess.PNG ├── src ├── javaapplication27 │ ├── assets │ │ ├── Admin.jpg │ │ ├── Panel1.jpg │ │ ├── image(2).png │ │ ├── seatchart.jpg │ │ ├── LoginIcon1.png │ │ ├── SignUpicon1.jpg │ │ ├── airasiaicon.png │ │ ├── Calendaricon.png │ │ ├── FirstSubPanel.jpeg │ │ ├── Passangericon.png │ │ └── locationicon.png │ ├── entity │ │ ├── Adulticon.png │ │ ├── Bookedseats.java │ │ ├── Login.java │ │ ├── Adminlogin.java │ │ ├── Payment.java │ │ ├── Customer.java │ │ ├── Seat.java │ │ ├── Passanger.java │ │ └── Flight.java │ └── viewcontroller │ │ ├── JavaApplication27.java │ │ ├── NewJFrame6.form │ │ ├── NewJFrame6.java │ │ ├── NewJFrame7.form │ │ ├── Bundle.properties │ │ ├── Bundle_fr_CA.properties │ │ ├── Bundle_de_DE.properties │ │ ├── NewJFrame7.java │ │ ├── NewJFrame4.java │ │ ├── NewJFrame4.form │ │ ├── NewJFrame3.java │ │ └── NewJFrame3.form └── META-INF │ └── persistence.xml ├── LoginInfo.txt ├── LICENSE └── README.md /output.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LoginInfo.txt.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PassangerInfo.txt.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nbproject/private/config.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PassangerInfo.txt: -------------------------------------------------------------------------------- 1 | Date:2019-02-23 02:02:15 Passanger Name:Hasindu Flight ID: 3 Seat ID 1 Seat Name: C2 2 | -------------------------------------------------------------------------------- /manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /images/home.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/home.PNG -------------------------------------------------------------------------------- /images/login.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/login.PNG -------------------------------------------------------------------------------- /images/signup.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/signup.PNG -------------------------------------------------------------------------------- /images/adminhome.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/adminhome.PNG -------------------------------------------------------------------------------- /images/languages.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/languages.PNG -------------------------------------------------------------------------------- /images/passangerpass.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/passangerpass.PNG -------------------------------------------------------------------------------- /images/adminfunctions.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/adminfunctions.PNG -------------------------------------------------------------------------------- /images/paymentprocess.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/paymentprocess.PNG -------------------------------------------------------------------------------- /images/reservationprocess.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/images/reservationprocess.PNG -------------------------------------------------------------------------------- /src/javaapplication27/assets/Admin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/Admin.jpg -------------------------------------------------------------------------------- /src/javaapplication27/assets/Panel1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/Panel1.jpg -------------------------------------------------------------------------------- /src/javaapplication27/assets/image(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/image(2).png -------------------------------------------------------------------------------- /src/javaapplication27/assets/seatchart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/seatchart.jpg -------------------------------------------------------------------------------- /src/javaapplication27/entity/Adulticon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/entity/Adulticon.png -------------------------------------------------------------------------------- /src/javaapplication27/assets/LoginIcon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/LoginIcon1.png -------------------------------------------------------------------------------- /src/javaapplication27/assets/SignUpicon1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/SignUpicon1.jpg -------------------------------------------------------------------------------- /src/javaapplication27/assets/airasiaicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/airasiaicon.png -------------------------------------------------------------------------------- /src/javaapplication27/assets/Calendaricon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/Calendaricon.png -------------------------------------------------------------------------------- /src/javaapplication27/assets/FirstSubPanel.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/FirstSubPanel.jpeg -------------------------------------------------------------------------------- /src/javaapplication27/assets/Passangericon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/Passangericon.png -------------------------------------------------------------------------------- /src/javaapplication27/assets/locationicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hasindu1/Airline-Ticket-Reservation-System-Java-Swing/HEAD/src/javaapplication27/assets/locationicon.png -------------------------------------------------------------------------------- /nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | compile.on.save=true 2 | do.depend=false 3 | do.jar=true 4 | javac.debug=true 5 | javadoc.preview=true 6 | user.properties.file=C:\\Users\\Hasindu\\AppData\\Roaming\\NetBeans\\8.2\\build.properties 7 | -------------------------------------------------------------------------------- /nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=60c5b64b 2 | build.xml.script.CRC32=5239056f 3 | build.xml.stylesheet.CRC32=8064a381@1.80.1.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=60c5b64b 7 | nbproject/build-impl.xml.script.CRC32=f8dc011e 8 | nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 9 | -------------------------------------------------------------------------------- /LoginInfo.txt: -------------------------------------------------------------------------------- 1 | Normal User: Hasindu Date:2019-02-23 02:02:54 2 | Date:2019-02-23 02:02:04 3 | Searched Flights 4 | Date:2019-02-23 02:02:19 Searched selected flight 5 | Date:2019-02-23 02:02:24 Searched selected seats 6 | Date:2019-02-23 02:02:00 Clicked procedd button on Payment details page 7 | Date:2019-02-23 02:02:24 clicked continue button on passanger pass page 8 | Date:2019-02-23 02:02:32 clicked home button on Passanger pass page 9 | Admin user: Hasindu Date:2019-02-23 02:02:54 10 | Normal User: Hasindu Date:2019-02-23 02:02:08 11 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | JavaApplication27 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Hasindu Dahanayake 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.eclipse.persistence.jpa.PersistenceProvider 5 | javaapplication27.entity.Passanger 6 | javaapplication27.entity.Login 7 | javaapplication27.entity.Seat 8 | javaapplication27.entity.Payment 9 | javaapplication27.entity.Bookedseats 10 | javaapplication27.entity.Customer 11 | javaapplication27.entity.Adminlogin 12 | javaapplication27.entity.Flight 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Bookedseats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.io.Serializable; 9 | import javax.persistence.Basic; 10 | import javax.persistence.Column; 11 | import javax.persistence.Entity; 12 | import javax.persistence.Id; 13 | import javax.persistence.JoinColumn; 14 | import javax.persistence.ManyToOne; 15 | import javax.persistence.NamedQueries; 16 | import javax.persistence.NamedQuery; 17 | import javax.persistence.Table; 18 | import javax.xml.bind.annotation.XmlRootElement; 19 | 20 | /** 21 | * 22 | * @author Hasindu 23 | */ 24 | @Entity 25 | @Table(name = "BOOKEDSEATS") 26 | @XmlRootElement 27 | @NamedQueries({ 28 | @NamedQuery(name = "Bookedseats.findAll", query = "SELECT b FROM Bookedseats b") 29 | , @NamedQuery(name = "Bookedseats.findByBsid", query = "SELECT b FROM Bookedseats b WHERE b.bsid = :bsid")}) 30 | public class Bookedseats implements Serializable { 31 | 32 | private static final long serialVersionUID = 1L; 33 | @Id 34 | @Basic(optional = false) 35 | @Column(name = "BSID") 36 | private Integer bsid; 37 | @JoinColumn(name = "PSID", referencedColumnName = "PASSANGERID") 38 | @ManyToOne 39 | private Passanger psid; 40 | 41 | public Bookedseats() { 42 | } 43 | 44 | public Bookedseats(Integer bsid) { 45 | this.bsid = bsid; 46 | } 47 | 48 | public Integer getBsid() { 49 | return bsid; 50 | } 51 | 52 | public void setBsid(Integer bsid) { 53 | this.bsid = bsid; 54 | } 55 | 56 | public Passanger getPsid() { 57 | return psid; 58 | } 59 | 60 | public void setPsid(Passanger psid) { 61 | this.psid = psid; 62 | } 63 | 64 | @Override 65 | public int hashCode() { 66 | int hash = 0; 67 | hash += (bsid != null ? bsid.hashCode() : 0); 68 | return hash; 69 | } 70 | 71 | @Override 72 | public boolean equals(Object object) { 73 | // TODO: Warning - this method won't work in the case the id fields are not set 74 | if (!(object instanceof Bookedseats)) { 75 | return false; 76 | } 77 | Bookedseats other = (Bookedseats) object; 78 | if ((this.bsid == null && other.bsid != null) || (this.bsid != null && !this.bsid.equals(other.bsid))) { 79 | return false; 80 | } 81 | return true; 82 | } 83 | 84 | @Override 85 | public String toString() { 86 | return "javaapplication27.Bookedseats[ bsid=" + bsid + " ]"; 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Login.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.io.Serializable; 9 | import javax.persistence.Basic; 10 | import javax.persistence.Column; 11 | import javax.persistence.Entity; 12 | import javax.persistence.Id; 13 | import javax.persistence.NamedQueries; 14 | import javax.persistence.NamedQuery; 15 | import javax.persistence.Table; 16 | import javax.xml.bind.annotation.XmlRootElement; 17 | 18 | /** 19 | * 20 | * @author Hasindu 21 | */ 22 | @Entity 23 | @Table(name = "LOGIN") 24 | @XmlRootElement 25 | @NamedQueries({ 26 | @NamedQuery(name = "Login.findAll", query = "SELECT l FROM Login l") 27 | , @NamedQuery(name = "Login.findByUsername", query = "SELECT l FROM Login l WHERE l.username = :username") 28 | , @NamedQuery(name = "Login.findByPassword", query = "SELECT l FROM Login l WHERE l.password = :password")}) 29 | public class Login implements Serializable { 30 | 31 | private static final long serialVersionUID = 1L; 32 | @Id 33 | @Basic(optional = false) 34 | @Column(name = "USERNAME") 35 | private String username; 36 | @Column(name = "PASSWORD") 37 | private String password; 38 | 39 | public Login() { 40 | } 41 | 42 | public Login(String username) { 43 | this.username = username; 44 | } 45 | 46 | public String getUsername() { 47 | return username; 48 | } 49 | 50 | public void setUsername(String username) { 51 | this.username = username; 52 | } 53 | 54 | public String getPassword() { 55 | return password; 56 | } 57 | 58 | public void setPassword(String password) { 59 | this.password = password; 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | int hash = 0; 65 | hash += (username != null ? username.hashCode() : 0); 66 | return hash; 67 | } 68 | 69 | @Override 70 | public boolean equals(Object object) { 71 | // TODO: Warning - this method won't work in the case the id fields are not set 72 | if (!(object instanceof Login)) { 73 | return false; 74 | } 75 | Login other = (Login) object; 76 | if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) { 77 | return false; 78 | } 79 | return true; 80 | } 81 | 82 | @Override 83 | public String toString() { 84 | return "javaapplication27.Login[ username=" + username + " ]"; 85 | } 86 | 87 | } 88 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # :airplane: Airline Reservation System 2 | ![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103) 3 | 4 | ## Technology stack 5 | 6 | ### Languages 7 | ![Java](https://img.shields.io/badge/Language-Java-red) 8 | ![SQL](https://img.shields.io/badge/Language-SQL-red) 9 | 10 | ### Frameworks and Libs 11 | ![JavaMailAPI](https://img.shields.io/badge/Library-JavaMailAPI-blue) 12 | ![JPAHibernate](https://img.shields.io/badge/Library-JPAHibernate-blue) 13 | 14 | 15 | ### Technologies and APIs 16 | ![JavaSwing](https://img.shields.io/badge/Technology-JavaSwing-blue) 17 | 18 | 19 | 20 | ### Tools ,Databases and servers 21 | ![NetBeans](https://img.shields.io/badge/Technology-NetBenas-blue) 22 | ![ApacheDerby](https://img.shields.io/badge/Database-ApacheDerby-blue) 23 | ![GlassFishServer](https://img.shields.io/badge/Database-GlassFishServer-blue) 24 | 25 | This project was based on creating an airline ticket reservation system. The system includes mainly two different accessibility levels. One for seat reservation agents and other for Admin. The system also enriches with three different languages(localization and Internationalization). Seat booking agents can mainly do booking flights based on different dates and times by taking reservation details by customers and they can reserve any seat for customers by looking at the seat reservation chart. After the reservation, they can get personal details of the customer and continue the payment. Once the payment is completed the customer will receive an online message and ticket through the email with all the information required to the flight. 26 | 27 | As an Admin he can manage all the flights by adding new flight plans and he can also manage the seats in the plane, he can do any change he wants to the system database through his interfaces. He also can view reports and comparison charts generated by the system too. The system also includes two separate log files to view customer booking details and system user login details with time. 28 | 29 | 30 | ## Some Interfaces of the System 31 | 32 |

33 | 34 |

35 | 36 |

37 | 38 |

39 | 40 | 41 |

42 | 43 |

44 | 45 |

46 | 47 |

48 | 49 |

50 | 51 |

52 | 53 |

54 | 55 |

56 | 57 |

58 | 59 |

60 | 61 |

62 | 63 |

64 | 65 | 66 | 67 | ## 👨🏼‍💻 Contributors 68 | 69 | * Hasindu Dahanayake(My self) 70 | 71 | 72 | You can also follow my GitHub Profile to stay updated about my latest projects: [![GitHub Follow](https://img.shields.io/badge/Connect-Hasindu1-blue.svg?logo=Github&longCache=true&style=social&label=Follow)](https://github.com/Hasindu1) 73 | 74 | If you liked the repo then please support it by giving it a star ⭐! 75 | 76 | 77 | ## License 78 | [![MIT](https://img.shields.io/cocoapods/l/AFNetworking.svg?style=style&label=License&maxAge=2592000)](../master/LICENSE) 79 | 80 | Copyright (c) 2020-present,Hasindu Dahanayake 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Adminlogin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.io.Serializable; 9 | import javax.persistence.Basic; 10 | import javax.persistence.Column; 11 | import javax.persistence.Entity; 12 | import javax.persistence.Id; 13 | import javax.persistence.NamedQueries; 14 | import javax.persistence.NamedQuery; 15 | import javax.persistence.Table; 16 | import javax.xml.bind.annotation.XmlRootElement; 17 | 18 | /** 19 | * 20 | * @author Hasindu 21 | */ 22 | @Entity 23 | @Table(name = "ADMINLOGIN") 24 | @XmlRootElement 25 | @NamedQueries({ 26 | @NamedQuery(name = "Adminlogin.findAll", query = "SELECT a FROM Adminlogin a") 27 | , @NamedQuery(name = "Adminlogin.findByName", query = "SELECT a FROM Adminlogin a WHERE a.name = :name") 28 | , @NamedQuery(name = "Adminlogin.findByUsername", query = "SELECT a FROM Adminlogin a WHERE a.username = :username") 29 | , @NamedQuery(name = "Adminlogin.findByPassword", query = "SELECT a FROM Adminlogin a WHERE a.password = :password") 30 | , @NamedQuery(name = "Adminlogin.findByEmail", query = "SELECT a FROM Adminlogin a WHERE a.email = :email")}) 31 | public class Adminlogin implements Serializable { 32 | 33 | private static final long serialVersionUID = 1L; 34 | @Column(name = "NAME") 35 | private String name; 36 | @Id 37 | @Basic(optional = false) 38 | @Column(name = "USERNAME") 39 | private String username; 40 | @Column(name = "PASSWORD") 41 | private String password; 42 | @Column(name = "EMAIL") 43 | private String email; 44 | 45 | public Adminlogin() { 46 | } 47 | 48 | public Adminlogin(String username) { 49 | this.username = username; 50 | } 51 | 52 | public String getName() { 53 | return name; 54 | } 55 | 56 | public void setName(String name) { 57 | this.name = name; 58 | } 59 | 60 | public String getUsername() { 61 | return username; 62 | } 63 | 64 | public void setUsername(String username) { 65 | this.username = username; 66 | } 67 | 68 | public String getPassword() { 69 | return password; 70 | } 71 | 72 | public void setPassword(String password) { 73 | this.password = password; 74 | } 75 | 76 | public String getEmail() { 77 | return email; 78 | } 79 | 80 | public void setEmail(String email) { 81 | this.email = email; 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | int hash = 0; 87 | hash += (username != null ? username.hashCode() : 0); 88 | return hash; 89 | } 90 | 91 | @Override 92 | public boolean equals(Object object) { 93 | // TODO: Warning - this method won't work in the case the id fields are not set 94 | if (!(object instanceof Adminlogin)) { 95 | return false; 96 | } 97 | Adminlogin other = (Adminlogin) object; 98 | if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) { 99 | return false; 100 | } 101 | return true; 102 | } 103 | 104 | @Override 105 | public String toString() { 106 | return "javaapplication27.Adminlogin[ username=" + username + " ]"; 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Payment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.io.Serializable; 9 | import javax.persistence.Basic; 10 | import javax.persistence.Column; 11 | import javax.persistence.Entity; 12 | import javax.persistence.Id; 13 | import javax.persistence.JoinColumn; 14 | import javax.persistence.ManyToOne; 15 | import javax.persistence.NamedQueries; 16 | import javax.persistence.NamedQuery; 17 | import javax.persistence.Table; 18 | import javax.xml.bind.annotation.XmlRootElement; 19 | 20 | /** 21 | * 22 | * @author Hasindu 23 | */ 24 | @Entity 25 | @Table(name = "PAYMENT") 26 | @XmlRootElement 27 | @NamedQueries({ 28 | @NamedQuery(name = "Payment.findAll", query = "SELECT p FROM Payment p") 29 | , @NamedQuery(name = "Payment.findByPaymentid", query = "SELECT p FROM Payment p WHERE p.paymentid = :paymentid") 30 | , @NamedQuery(name = "Payment.findByPaymenttype", query = "SELECT p FROM Payment p WHERE p.paymenttype = :paymenttype") 31 | , @NamedQuery(name = "Payment.findByValue", query = "SELECT p FROM Payment p WHERE p.value = :value")}) 32 | public class Payment implements Serializable { 33 | 34 | private static final long serialVersionUID = 1L; 35 | @Id 36 | @Basic(optional = false) 37 | @Column(name = "PAYMENTID") 38 | private Integer paymentid; 39 | @Column(name = "PAYMENTTYPE") 40 | private String paymenttype; 41 | @Column(name = "VALUE") 42 | private Integer value; 43 | @JoinColumn(name = "CID", referencedColumnName = "CUSTOMERID") 44 | @ManyToOne 45 | private Customer cid; 46 | 47 | public Payment() { 48 | } 49 | 50 | public Payment(Integer paymentid) { 51 | this.paymentid = paymentid; 52 | } 53 | 54 | public Integer getPaymentid() { 55 | return paymentid; 56 | } 57 | 58 | public void setPaymentid(Integer paymentid) { 59 | this.paymentid = paymentid; 60 | } 61 | 62 | public String getPaymenttype() { 63 | return paymenttype; 64 | } 65 | 66 | public void setPaymenttype(String paymenttype) { 67 | this.paymenttype = paymenttype; 68 | } 69 | 70 | public Integer getValue() { 71 | return value; 72 | } 73 | 74 | public void setValue(Integer value) { 75 | this.value = value; 76 | } 77 | 78 | public Customer getCid() { 79 | return cid; 80 | } 81 | 82 | public void setCid(Customer cid) { 83 | this.cid = cid; 84 | } 85 | 86 | @Override 87 | public int hashCode() { 88 | int hash = 0; 89 | hash += (paymentid != null ? paymentid.hashCode() : 0); 90 | return hash; 91 | } 92 | 93 | @Override 94 | public boolean equals(Object object) { 95 | // TODO: Warning - this method won't work in the case the id fields are not set 96 | if (!(object instanceof Payment)) { 97 | return false; 98 | } 99 | Payment other = (Payment) object; 100 | if ((this.paymentid == null && other.paymentid != null) || (this.paymentid != null && !this.paymentid.equals(other.paymentid))) { 101 | return false; 102 | } 103 | return true; 104 | } 105 | 106 | @Override 107 | public String toString() { 108 | return "javaapplication27.Payment[ paymentid=" + paymentid + " ]"; 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/JavaApplication27.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.viewcontroller; 7 | 8 | import java.text.SimpleDateFormat; 9 | 10 | import java.util.Date; 11 | 12 | import java.util.Properties; 13 | 14 | import javax.mail.Message; 15 | 16 | import javax.mail.MessagingException; 17 | 18 | import javax.mail.PasswordAuthentication; 19 | 20 | import javax.mail.Session; 21 | 22 | import javax.mail.Transport; 23 | 24 | import javax.mail.internet.InternetAddress; 25 | 26 | import javax.mail.internet.MimeMessage; 27 | 28 | 29 | public class JavaApplication27 { 30 | 31 | /** 32 | * @param args the command line arguments 33 | */ 34 | public static void main(String[] args) { 35 | //Setting up configurations for the email connection to the Google SMTP server using TLS 36 | 37 | // Properties props = new Properties(); 38 | // 39 | // props.put("mail.smtp.host", "true"); 40 | // 41 | // props.put("mail.smtp.starttls.enable", "true"); 42 | // 43 | // props.put("mail.smtp.host", "smtp.gmail.com"); 44 | // 45 | // props.put("mail.smtp.port", "587"); 46 | // 47 | // props.put("mail.smtp.auth", "true"); 48 | // 49 | // //Establishing a session with required user details 50 | // 51 | // Session session = Session.getInstance(props, new javax.mail.Authenticator() { 52 | // 53 | // protected PasswordAuthentication getPasswordAuthentication() { 54 | // 55 | // return new PasswordAuthentication("hasiyadahanayake@gmail.com", "hasiya9898@dushyantha"); 56 | // 57 | // } 58 | // 59 | // }); 60 | // 61 | // try { 62 | // 63 | // //Creating a Message object to set the email content 64 | // 65 | // MimeMessage msg = new MimeMessage(session); 66 | // 67 | // //Storing the comma seperated values to email addresses 68 | // 69 | // String to = "hasiyadahanayake@gmail.com,hasindudahanayake1998@gmail.com"; 70 | // 71 | // /*Parsing the String with defualt delimiter as a comma by marking the boolean as true and storing the email 72 | // 73 | // addresses in an array of InternetAddress objects*/ 74 | // 75 | // InternetAddress[] address = InternetAddress.parse(to, true); 76 | // 77 | // //Setting the recepients from the address variable 78 | // 79 | // msg.setRecipients(Message.RecipientType.TO, address); 80 | // 81 | // String timeStamp = new SimpleDateFormat("yyyymmdd_hh-mm-ss").format(new Date()); 82 | // 83 | // msg.setSubject("Sample Mail : " + timeStamp); 84 | // 85 | // msg.setSentDate(new Date()); 86 | // String s1 = "Hasindu"; 87 | // String s2 ="Dahanaykae"; 88 | // 89 | // 90 | // msg.setText(" " + "PASSANGER PASS" + " "+"\n"+"\n"+"\n" +"Hasindu" ); 91 | // 92 | // 93 | // msg.setHeader("XPriority", "1"); 94 | // 95 | // Transport.send(msg); 96 | // 97 | // System.out.println("Mail has been sent successfully"); 98 | // 99 | // } catch (MessagingException mex) { 100 | // 101 | // System.out.println("Unable to send an email" + mex); 102 | // 103 | // } 104 | String s = "dsf"; 105 | if(!(s.matches("[0-9]+"))){ 106 | System.out.println("yes"); 107 | } 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Customer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.beans.PropertyChangeListener; 9 | import java.beans.PropertyChangeSupport; 10 | import java.io.Serializable; 11 | import java.util.Collection; 12 | import javax.persistence.Basic; 13 | import javax.persistence.Column; 14 | import javax.persistence.Entity; 15 | import javax.persistence.Id; 16 | import javax.persistence.NamedQueries; 17 | import javax.persistence.NamedQuery; 18 | import javax.persistence.OneToMany; 19 | import javax.persistence.Table; 20 | import javax.persistence.Transient; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlTransient; 23 | 24 | /** 25 | * 26 | * @author Hasindu 27 | */ 28 | @Entity 29 | @Table(name = "CUSTOMER") 30 | @XmlRootElement 31 | @NamedQueries({ 32 | @NamedQuery(name = "Customer.findAll", query = "SELECT c FROM Customer c") 33 | , @NamedQuery(name = "Customer.findByCustomerid", query = "SELECT c FROM Customer c WHERE c.customerid = :customerid") 34 | , @NamedQuery(name = "Customer.findByCustomername", query = "SELECT c FROM Customer c WHERE c.customername = :customername") 35 | , @NamedQuery(name = "Customer.findByEmail", query = "SELECT c FROM Customer c WHERE c.email = :email")}) 36 | public class Customer implements Serializable { 37 | 38 | @Transient 39 | private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this); 40 | 41 | private static final long serialVersionUID = 1L; 42 | @Id 43 | @Basic(optional = false) 44 | @Column(name = "CUSTOMERID") 45 | private Integer customerid; 46 | @Column(name = "CUSTOMERNAME") 47 | private String customername; 48 | @Column(name = "EMAIL") 49 | private String email; 50 | @OneToMany(mappedBy = "cid") 51 | private Collection paymentCollection; 52 | 53 | public Customer() { 54 | } 55 | 56 | public Customer(Integer customerid) { 57 | this.customerid = customerid; 58 | } 59 | 60 | public Integer getCustomerid() { 61 | return customerid; 62 | } 63 | 64 | public void setCustomerid(Integer customerid) { 65 | Integer oldCustomerid = this.customerid; 66 | this.customerid = customerid; 67 | changeSupport.firePropertyChange("customerid", oldCustomerid, customerid); 68 | } 69 | 70 | public String getCustomername() { 71 | return customername; 72 | } 73 | 74 | public void setCustomername(String customername) { 75 | String oldCustomername = this.customername; 76 | this.customername = customername; 77 | changeSupport.firePropertyChange("customername", oldCustomername, customername); 78 | } 79 | 80 | public String getEmail() { 81 | return email; 82 | } 83 | 84 | public void setEmail(String email) { 85 | String oldEmail = this.email; 86 | this.email = email; 87 | changeSupport.firePropertyChange("email", oldEmail, email); 88 | } 89 | 90 | @XmlTransient 91 | public Collection getPaymentCollection() { 92 | return paymentCollection; 93 | } 94 | 95 | public void setPaymentCollection(Collection paymentCollection) { 96 | this.paymentCollection = paymentCollection; 97 | } 98 | 99 | @Override 100 | public int hashCode() { 101 | int hash = 0; 102 | hash += (customerid != null ? customerid.hashCode() : 0); 103 | return hash; 104 | } 105 | 106 | @Override 107 | public boolean equals(Object object) { 108 | // TODO: Warning - this method won't work in the case the id fields are not set 109 | if (!(object instanceof Customer)) { 110 | return false; 111 | } 112 | Customer other = (Customer) object; 113 | if ((this.customerid == null && other.customerid != null) || (this.customerid != null && !this.customerid.equals(other.customerid))) { 114 | return false; 115 | } 116 | return true; 117 | } 118 | 119 | @Override 120 | public String toString() { 121 | return "javaapplication27.Customer[ customerid=" + customerid + " ]"; 122 | 123 | } 124 | 125 | public void addPropertyChangeListener(PropertyChangeListener listener) { 126 | changeSupport.addPropertyChangeListener(listener); 127 | } 128 | 129 | public void removePropertyChangeListener(PropertyChangeListener listener) { 130 | changeSupport.removePropertyChangeListener(listener); 131 | } 132 | 133 | 134 | } 135 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame6.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |
92 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame6.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.viewcontroller; 7 | 8 | import java.awt.Color; 9 | 10 | /** 11 | * 12 | * @author Hasindu 13 | */ 14 | public class NewJFrame6 extends javax.swing.JFrame { 15 | 16 | /** 17 | * Creates new form NewJFrame6 18 | */ 19 | public NewJFrame6() { 20 | initComponents(); 21 | jPanel2.setBackground(new Color(0,0,0,100)); 22 | } 23 | 24 | /** 25 | * This method is called from within the constructor to initialize the form. 26 | * WARNING: Do NOT modify this code. The content of this method is always 27 | * regenerated by the Form Editor. 28 | */ 29 | @SuppressWarnings("unchecked") 30 | // //GEN-BEGIN:initComponents 31 | private void initComponents() { 32 | 33 | jPanel1 = new javax.swing.JPanel(); 34 | jPanel2 = new javax.swing.JPanel(); 35 | jLabel1 = new javax.swing.JLabel(); 36 | jLabel2 = new javax.swing.JLabel(); 37 | 38 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 39 | 40 | jPanel1.setLayout(null); 41 | 42 | jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication27/assets/seatchart.jpg"))); // NOI18N 43 | jLabel1.setText("jLabel1"); 44 | 45 | javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); 46 | jPanel2.setLayout(jPanel2Layout); 47 | jPanel2Layout.setHorizontalGroup( 48 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 49 | .addGroup(jPanel2Layout.createSequentialGroup() 50 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 649, javax.swing.GroupLayout.PREFERRED_SIZE) 51 | .addGap(0, 1, Short.MAX_VALUE)) 52 | ); 53 | jPanel2Layout.setVerticalGroup( 54 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 55 | .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE) 56 | ); 57 | 58 | jPanel1.add(jPanel2); 59 | jPanel2.setBounds(80, 20, 650, 220); 60 | 61 | jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication27/assets/FirstSubPanel.jpeg"))); // NOI18N 62 | jLabel2.setText("jLabel2"); 63 | jPanel1.add(jLabel2); 64 | jLabel2.setBounds(0, 0, 780, 252); 65 | 66 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 67 | getContentPane().setLayout(layout); 68 | layout.setHorizontalGroup( 69 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 70 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 784, javax.swing.GroupLayout.PREFERRED_SIZE) 71 | ); 72 | layout.setVerticalGroup( 73 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 74 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE) 75 | ); 76 | 77 | pack(); 78 | }// //GEN-END:initComponents 79 | 80 | /** 81 | * @param args the command line arguments 82 | */ 83 | public static void main(String args[]) { 84 | /* Set the Nimbus look and feel */ 85 | // 86 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 87 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 88 | */ 89 | try { 90 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 91 | if ("Nimbus".equals(info.getName())) { 92 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 93 | break; 94 | } 95 | } 96 | } catch (ClassNotFoundException ex) { 97 | java.util.logging.Logger.getLogger(NewJFrame6.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 98 | } catch (InstantiationException ex) { 99 | java.util.logging.Logger.getLogger(NewJFrame6.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 100 | } catch (IllegalAccessException ex) { 101 | java.util.logging.Logger.getLogger(NewJFrame6.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 102 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 103 | java.util.logging.Logger.getLogger(NewJFrame6.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 104 | } 105 | // 106 | 107 | /* Create and display the form */ 108 | java.awt.EventQueue.invokeLater(new Runnable() { 109 | public void run() { 110 | new NewJFrame6().setVisible(true); 111 | } 112 | }); 113 | } 114 | 115 | // Variables declaration - do not modify//GEN-BEGIN:variables 116 | private javax.swing.JLabel jLabel1; 117 | private javax.swing.JLabel jLabel2; 118 | private javax.swing.JPanel jPanel1; 119 | private javax.swing.JPanel jPanel2; 120 | // End of variables declaration//GEN-END:variables 121 | } 122 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processor.options=-Aeclipselink.canonicalmodel.use_static_factory=false 4 | annotation.processing.processors.list= 5 | annotation.processing.run.all.processors=true 6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 7 | application.title=JavaApplication27 8 | application.vendor=Hasindu 9 | build.classes.dir=${build.dir}/classes 10 | build.classes.excludes=**/*.java,**/*.form 11 | # This directory is removed when the project is cleaned: 12 | build.dir=build 13 | build.generated.dir=${build.dir}/generated 14 | build.generated.sources.dir=${build.dir}/generated-sources 15 | # Only compile against the classpath explicitly listed here: 16 | build.sysclasspath=ignore 17 | build.test.classes.dir=${build.dir}/test/classes 18 | build.test.results.dir=${build.dir}/test/results 19 | # Uncomment to specify the preferred debugger connection transport: 20 | #debug.transport=dt_socket 21 | debug.classpath=\ 22 | ${run.classpath} 23 | debug.test.classpath=\ 24 | ${run.test.classpath} 25 | # Files in build.classes.dir which should be excluded from distribution jar 26 | dist.archive.excludes= 27 | # This directory is removed when the project is cleaned: 28 | dist.dir=dist 29 | dist.jar=${dist.dir}/JavaApplication27.jar 30 | dist.javadoc.dir=${dist.dir}/javadoc 31 | endorsed.classpath= 32 | excludes= 33 | file.reference.activation.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\New folder (3)\\activation.jar 34 | file.reference.DateChooser.jar=C:\\Users\\hasiy\\Desktop\\Jdatechooser\\jdatechooser_bin_doc_1_1_1\\lib\\DateChooser.jar 35 | file.reference.derby.jar=C:\\Program Files\\glassfish-4.1.1\\javadb\\lib\\derby.jar 36 | file.reference.derbyclient.jar=C:\\Program Files\\glassfish-4.1.1\\javadb\\lib\\derbyclient.jar 37 | file.reference.dsn.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\dsn.jar 38 | file.reference.gimap.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\gimap.jar 39 | file.reference.imap.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\imap.jar 40 | file.reference.javax.mail.jar=C:\\Users\\Hasindu\\Documents\\javax.mail.jar 41 | file.reference.jcalendar-1.4.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\New folder (2)\\lib\\jcalendar-1.4.jar 42 | file.reference.jcalendar-1.4.jar-1=C:\\Users\\Hasindu\\Documents\\jcalendar-1.4.jar 43 | file.reference.jcommon-1.0.23.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\jfreechart-1.0.19\\lib\\jcommon-1.0.23.jar 44 | file.reference.jfreechart-1.0.19-demo.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\jfreechart-1.0.19\\jfreechart-1.0.19-demo.jar 45 | file.reference.jfreechart-1.0.19-swt.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\jfreechart-1.0.19\\lib\\jfreechart-1.0.19-swt.jar 46 | file.reference.jfreechart-1.0.19.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\jfreechart-1.0.19\\lib\\jfreechart-1.0.19.jar 47 | file.reference.jfreechart-1.0.6.jar=C:\\Users\\Hasindu\\Documents\\jfreechart-1.0.6.jar 48 | file.reference.JTimeChooser_0.1.0_1_.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\JTimeChooser_0.1.0(1).jar 49 | file.reference.mail.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\mail.jar 50 | file.reference.mailapi.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\mailapi.jar 51 | file.reference.pop3.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\pop3.jar 52 | file.reference.smtp.jar=C:\\Users\\Hasindu\\Desktop\\Day4\\javamail-1.4.7\\lib\\smtp.jar 53 | includes=** 54 | jar.compress=false 55 | javac.classpath=\ 56 | ${libs.eclipselink.classpath}:\ 57 | ${file.reference.jcalendar-1.4.jar}:\ 58 | ${file.reference.derbyclient.jar}:\ 59 | ${file.reference.derby.jar}:\ 60 | ${libs.beans-binding.classpath}:\ 61 | ${libs.MySQLDriver.classpath}:\ 62 | ${file.reference.mail.jar}:\ 63 | ${file.reference.smtp.jar}:\ 64 | ${file.reference.pop3.jar}:\ 65 | ${file.reference.mailapi.jar}:\ 66 | ${file.reference.imap.jar}:\ 67 | ${file.reference.gimap.jar}:\ 68 | ${file.reference.dsn.jar}:\ 69 | ${file.reference.activation.jar}:\ 70 | ${file.reference.JTimeChooser_0.1.0_1_.jar}:\ 71 | ${file.reference.jfreechart-1.0.19-demo.jar}:\ 72 | ${file.reference.jfreechart-1.0.19-swt.jar}:\ 73 | ${file.reference.jcommon-1.0.23.jar}:\ 74 | ${file.reference.jfreechart-1.0.19.jar}:\ 75 | ${file.reference.DateChooser.jar}:\ 76 | ${file.reference.javax.mail.jar}:\ 77 | ${file.reference.jcalendar-1.4.jar-1}:\ 78 | ${file.reference.jfreechart-1.0.6.jar} 79 | # Space-separated list of extra javac options 80 | javac.compilerargs= 81 | javac.deprecation=false 82 | javac.external.vm=true 83 | javac.processorpath=\ 84 | ${javac.classpath}:\ 85 | ${libs.eclipselinkmodelgen.classpath} 86 | javac.source=1.8 87 | javac.target=1.8 88 | javac.test.classpath=\ 89 | ${javac.classpath}:\ 90 | ${build.classes.dir} 91 | javac.test.processorpath=\ 92 | ${javac.test.classpath} 93 | javadoc.additionalparam= 94 | javadoc.author=false 95 | javadoc.encoding=${source.encoding} 96 | javadoc.noindex=false 97 | javadoc.nonavbar=false 98 | javadoc.notree=false 99 | javadoc.private=false 100 | javadoc.splitindex=true 101 | javadoc.use=true 102 | javadoc.version=false 103 | javadoc.windowtitle= 104 | main.class=javaapplication27.viewcontroller.JavaApplication27 105 | manifest.file=manifest.mf 106 | meta.inf.dir=${src.dir}/META-INF 107 | mkdist.disabled=false 108 | platform.active=default_platform 109 | run.classpath=\ 110 | ${javac.classpath}:\ 111 | ${build.classes.dir} 112 | # Space-separated list of JVM arguments used when running the project. 113 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 114 | # To set system properties for unit tests define test-sys-prop.name=value: 115 | run.jvmargs= 116 | run.test.classpath=\ 117 | ${javac.test.classpath}:\ 118 | ${build.test.classes.dir} 119 | source.encoding=UTF-8 120 | src.dir=src 121 | test.src.dir=test 122 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Seat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.beans.PropertyChangeListener; 9 | import java.beans.PropertyChangeSupport; 10 | import java.io.Serializable; 11 | import javax.persistence.Basic; 12 | import javax.persistence.Column; 13 | import javax.persistence.Entity; 14 | import javax.persistence.Id; 15 | import javax.persistence.JoinColumn; 16 | import javax.persistence.ManyToOne; 17 | import javax.persistence.NamedQueries; 18 | import javax.persistence.NamedQuery; 19 | import javax.persistence.Table; 20 | import javax.persistence.Transient; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | 23 | /** 24 | * 25 | * @author Hasindu 26 | */ 27 | @Entity 28 | @Table(name = "SEAT") 29 | @XmlRootElement 30 | @NamedQueries({ 31 | @NamedQuery(name = "Seat.findAll", query = "SELECT s FROM Seat s") 32 | , @NamedQuery(name = "Seat.findBySeatid", query = "SELECT s FROM Seat s WHERE s.seatid = :seatid") 33 | , @NamedQuery(name = "Seat.findBySeatname", query = "SELECT s FROM Seat s WHERE s.seatname = :seatname") 34 | , @NamedQuery(name = "Seat.findBySeatclass", query = "SELECT s FROM Seat s WHERE s.seatclass = :seatclass") 35 | , @NamedQuery(name = "Seat.findByAdultprice", query = "SELECT s FROM Seat s WHERE s.adultprice = :adultprice") 36 | , @NamedQuery(name = "Seat.findByChildprice", query = "SELECT s FROM Seat s WHERE s.childprice = :childprice") 37 | , @NamedQuery(name = "Seat.findByStatus", query = "SELECT s FROM Seat s WHERE s.status = :status")}) 38 | public class Seat implements Serializable { 39 | 40 | @Transient 41 | private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this); 42 | 43 | private static final long serialVersionUID = 1L; 44 | @Id 45 | @Basic(optional = false) 46 | @Column(name = "SEATID") 47 | private Integer seatid; 48 | @Column(name = "SEATNAME") 49 | private String seatname; 50 | @Column(name = "SEATCLASS") 51 | private String seatclass; 52 | @Column(name = "ADULTPRICE") 53 | private Integer adultprice; 54 | @Column(name = "CHILDPRICE") 55 | private Integer childprice; 56 | @Column(name = "STATUS") 57 | private Boolean status; 58 | @JoinColumn(name = "FLID", referencedColumnName = "FLIGHTID") 59 | @ManyToOne 60 | private Flight flid; 61 | 62 | public Seat() { 63 | } 64 | 65 | public Seat(Integer seatid) { 66 | this.seatid = seatid; 67 | } 68 | 69 | public Integer getSeatid() { 70 | return seatid; 71 | } 72 | 73 | public void setSeatid(Integer seatid) { 74 | Integer oldSeatid = this.seatid; 75 | this.seatid = seatid; 76 | changeSupport.firePropertyChange("seatid", oldSeatid, seatid); 77 | } 78 | 79 | public String getSeatname() { 80 | return seatname; 81 | } 82 | 83 | public void setSeatname(String seatname) { 84 | String oldSeatname = this.seatname; 85 | this.seatname = seatname; 86 | changeSupport.firePropertyChange("seatname", oldSeatname, seatname); 87 | } 88 | 89 | public String getSeatclass() { 90 | return seatclass; 91 | } 92 | 93 | public void setSeatclass(String seatclass) { 94 | String oldSeatclass = this.seatclass; 95 | this.seatclass = seatclass; 96 | changeSupport.firePropertyChange("seatclass", oldSeatclass, seatclass); 97 | } 98 | 99 | public Integer getAdultprice() { 100 | return adultprice; 101 | } 102 | 103 | public void setAdultprice(Integer adultprice) { 104 | Integer oldAdultprice = this.adultprice; 105 | this.adultprice = adultprice; 106 | changeSupport.firePropertyChange("adultprice", oldAdultprice, adultprice); 107 | } 108 | 109 | public Integer getChildprice() { 110 | return childprice; 111 | } 112 | 113 | public void setChildprice(Integer childprice) { 114 | Integer oldChildprice = this.childprice; 115 | this.childprice = childprice; 116 | changeSupport.firePropertyChange("childprice", oldChildprice, childprice); 117 | } 118 | 119 | public Boolean getStatus() { 120 | return status; 121 | } 122 | 123 | public void setStatus(Boolean status) { 124 | Boolean oldStatus = this.status; 125 | this.status = status; 126 | changeSupport.firePropertyChange("status", oldStatus, status); 127 | } 128 | 129 | public Flight getFlid() { 130 | return flid; 131 | } 132 | 133 | public void setFlid(Flight flid) { 134 | Flight oldFlid = this.flid; 135 | this.flid = flid; 136 | changeSupport.firePropertyChange("flid", oldFlid, flid); 137 | } 138 | 139 | @Override 140 | public int hashCode() { 141 | int hash = 0; 142 | hash += (seatid != null ? seatid.hashCode() : 0); 143 | return hash; 144 | } 145 | 146 | @Override 147 | public boolean equals(Object object) { 148 | // TODO: Warning - this method won't work in the case the id fields are not set 149 | if (!(object instanceof Seat)) { 150 | return false; 151 | } 152 | Seat other = (Seat) object; 153 | if ((this.seatid == null && other.seatid != null) || (this.seatid != null && !this.seatid.equals(other.seatid))) { 154 | return false; 155 | } 156 | return true; 157 | } 158 | 159 | @Override 160 | public String toString() { 161 | return "javaapplication27.Seat[ seatid=" + seatid + " ]"; 162 | } 163 | 164 | public void addPropertyChangeListener(PropertyChangeListener listener) { 165 | changeSupport.addPropertyChangeListener(listener); 166 | } 167 | 168 | public void removePropertyChangeListener(PropertyChangeListener listener) { 169 | changeSupport.removePropertyChangeListener(listener); 170 | } 171 | 172 | } 173 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Passanger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.beans.PropertyChangeListener; 9 | import java.beans.PropertyChangeSupport; 10 | import java.io.Serializable; 11 | import java.util.Collection; 12 | import javax.persistence.Basic; 13 | import javax.persistence.Column; 14 | import javax.persistence.Entity; 15 | import javax.persistence.Id; 16 | import javax.persistence.JoinColumn; 17 | import javax.persistence.ManyToOne; 18 | import javax.persistence.NamedQueries; 19 | import javax.persistence.NamedQuery; 20 | import javax.persistence.OneToMany; 21 | import javax.persistence.Table; 22 | import javax.persistence.Transient; 23 | import javax.xml.bind.annotation.XmlRootElement; 24 | import javax.xml.bind.annotation.XmlTransient; 25 | 26 | /** 27 | * 28 | * @author Hasindu 29 | */ 30 | @Entity 31 | @Table(name = "PASSANGER") 32 | @XmlRootElement 33 | @NamedQueries({ 34 | @NamedQuery(name = "Passanger.findAll", query = "SELECT p FROM Passanger p") 35 | , @NamedQuery(name = "Passanger.findByPassangerid", query = "SELECT p FROM Passanger p WHERE p.passangerid = :passangerid") 36 | , @NamedQuery(name = "Passanger.findByPname", query = "SELECT p FROM Passanger p WHERE p.pname = :pname") 37 | , @NamedQuery(name = "Passanger.findByEmail", query = "SELECT p FROM Passanger p WHERE p.email = :email") 38 | , @NamedQuery(name = "Passanger.findByGender", query = "SELECT p FROM Passanger p WHERE p.gender = :gender") 39 | , @NamedQuery(name = "Passanger.findByContactnumber", query = "SELECT p FROM Passanger p WHERE p.contactnumber = :contactnumber") 40 | , @NamedQuery(name = "Passanger.findByAge", query = "SELECT p FROM Passanger p WHERE p.age = :age")}) 41 | public class Passanger implements Serializable { 42 | 43 | @Transient 44 | private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this); 45 | 46 | private static final long serialVersionUID = 1L; 47 | @Id 48 | @Basic(optional = false) 49 | @Column(name = "PASSANGERID") 50 | private Integer passangerid; 51 | @Column(name = "PNAME") 52 | private String pname; 53 | @Column(name = "EMAIL") 54 | private String email; 55 | @Column(name = "GENDER") 56 | private String gender; 57 | @Column(name = "CONTACTNUMBER") 58 | private String contactnumber; 59 | @Column(name = "AGE") 60 | private String age; 61 | @OneToMany(mappedBy = "psid") 62 | private Collection bookedseatsCollection; 63 | @JoinColumn(name = "FID", referencedColumnName = "FLIGHTID") 64 | @ManyToOne 65 | private Flight fid; 66 | 67 | public Passanger() { 68 | } 69 | 70 | public Passanger(Integer passangerid) { 71 | this.passangerid = passangerid; 72 | } 73 | 74 | public Integer getPassangerid() { 75 | return passangerid; 76 | } 77 | 78 | public void setPassangerid(Integer passangerid) { 79 | Integer oldPassangerid = this.passangerid; 80 | this.passangerid = passangerid; 81 | changeSupport.firePropertyChange("passangerid", oldPassangerid, passangerid); 82 | } 83 | 84 | public String getPname() { 85 | return pname; 86 | } 87 | 88 | public void setPname(String pname) { 89 | String oldPname = this.pname; 90 | this.pname = pname; 91 | changeSupport.firePropertyChange("pname", oldPname, pname); 92 | } 93 | 94 | public String getEmail() { 95 | return email; 96 | } 97 | 98 | public void setEmail(String email) { 99 | String oldEmail = this.email; 100 | this.email = email; 101 | changeSupport.firePropertyChange("email", oldEmail, email); 102 | } 103 | 104 | public String getGender() { 105 | return gender; 106 | } 107 | 108 | public void setGender(String gender) { 109 | String oldGender = this.gender; 110 | this.gender = gender; 111 | changeSupport.firePropertyChange("gender", oldGender, gender); 112 | } 113 | 114 | public String getContactnumber() { 115 | return contactnumber; 116 | } 117 | 118 | public void setContactnumber(String contactnumber) { 119 | String oldContactnumber = this.contactnumber; 120 | this.contactnumber = contactnumber; 121 | changeSupport.firePropertyChange("contactnumber", oldContactnumber, contactnumber); 122 | } 123 | 124 | public String getAge() { 125 | return age; 126 | } 127 | 128 | public void setAge(String age) { 129 | String oldAge = this.age; 130 | this.age = age; 131 | changeSupport.firePropertyChange("age", oldAge, age); 132 | } 133 | 134 | @XmlTransient 135 | public Collection getBookedseatsCollection() { 136 | return bookedseatsCollection; 137 | } 138 | 139 | public void setBookedseatsCollection(Collection bookedseatsCollection) { 140 | this.bookedseatsCollection = bookedseatsCollection; 141 | } 142 | 143 | public Flight getFid() { 144 | return fid; 145 | } 146 | 147 | public void setFid(Flight fid) { 148 | Flight oldFid = this.fid; 149 | this.fid = fid; 150 | changeSupport.firePropertyChange("fid", oldFid, fid); 151 | } 152 | 153 | @Override 154 | public int hashCode() { 155 | int hash = 0; 156 | hash += (passangerid != null ? passangerid.hashCode() : 0); 157 | return hash; 158 | } 159 | 160 | @Override 161 | public boolean equals(Object object) { 162 | // TODO: Warning - this method won't work in the case the id fields are not set 163 | if (!(object instanceof Passanger)) { 164 | return false; 165 | } 166 | Passanger other = (Passanger) object; 167 | if ((this.passangerid == null && other.passangerid != null) || (this.passangerid != null && !this.passangerid.equals(other.passangerid))) { 168 | return false; 169 | } 170 | return true; 171 | } 172 | 173 | @Override 174 | public String toString() { 175 | return "javaapplication27.Passanger[ passangerid=" + passangerid + " ]"; 176 | } 177 | 178 | public void addPropertyChangeListener(PropertyChangeListener listener) { 179 | changeSupport.addPropertyChangeListener(listener); 180 | } 181 | 182 | public void removePropertyChangeListener(PropertyChangeListener listener) { 183 | changeSupport.removePropertyChangeListener(listener); 184 | } 185 | 186 | } 187 | -------------------------------------------------------------------------------- /src/javaapplication27/entity/Flight.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.entity; 7 | 8 | import java.beans.PropertyChangeListener; 9 | import java.beans.PropertyChangeSupport; 10 | import java.io.Serializable; 11 | import java.util.Collection; 12 | import java.util.Date; 13 | import javax.persistence.Basic; 14 | import javax.persistence.Column; 15 | import javax.persistence.Entity; 16 | import javax.persistence.Id; 17 | import javax.persistence.NamedQueries; 18 | import javax.persistence.NamedQuery; 19 | import javax.persistence.OneToMany; 20 | import javax.persistence.Table; 21 | import javax.persistence.Temporal; 22 | import javax.persistence.TemporalType; 23 | import javax.persistence.Transient; 24 | import javax.xml.bind.annotation.XmlRootElement; 25 | import javax.xml.bind.annotation.XmlTransient; 26 | 27 | /** 28 | * 29 | * @author Hasindu 30 | */ 31 | @Entity 32 | @Table(name = "FLIGHT") 33 | @XmlRootElement 34 | @NamedQueries({ 35 | @NamedQuery(name = "Flight.findAll", query = "SELECT f FROM Flight f") 36 | , @NamedQuery(name = "Flight.findByFlightid", query = "SELECT f FROM Flight f WHERE f.flightid = :flightid") 37 | , @NamedQuery(name = "Flight.findByTerminal", query = "SELECT f FROM Flight f WHERE f.terminal = :terminal") 38 | , @NamedQuery(name = "Flight.findByBtime", query = "SELECT f FROM Flight f WHERE f.btime = :btime") 39 | , @NamedQuery(name = "Flight.findByDepartdate", query = "SELECT f FROM Flight f WHERE f.departdate = :departdate") 40 | , @NamedQuery(name = "Flight.findByReturndate", query = "SELECT f FROM Flight f WHERE f.returndate = :returndate") 41 | , @NamedQuery(name = "Flight.findByAirport1", query = "SELECT f FROM Flight f WHERE f.airport1 = :airport1") 42 | , @NamedQuery(name = "Flight.findByAirport2", query = "SELECT f FROM Flight f WHERE f.airport2 = :airport2") 43 | , @NamedQuery(name = "Flight.findByCountry1", query = "SELECT f FROM Flight f WHERE f.country1 = :country1") 44 | , @NamedQuery(name = "Flight.findByCountry2", query = "SELECT f FROM Flight f WHERE f.country2 = :country2")}) 45 | public class Flight implements Serializable { 46 | 47 | @Transient 48 | private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this); 49 | 50 | private static final long serialVersionUID = 1L; 51 | @Id 52 | @Basic(optional = false) 53 | @Column(name = "FLIGHTID") 54 | private Integer flightid; 55 | @Column(name = "TERMINAL") 56 | private Integer terminal; 57 | @Column(name = "BTIME") 58 | @Temporal(TemporalType.TIME) 59 | private Date btime; 60 | @Column(name = "DEPARTDATE") 61 | @Temporal(TemporalType.DATE) 62 | private Date departdate; 63 | @Column(name = "RETURNDATE") 64 | @Temporal(TemporalType.DATE) 65 | private Date returndate; 66 | @Column(name = "AIRPORT1") 67 | private String airport1; 68 | @Column(name = "AIRPORT2") 69 | private String airport2; 70 | @Column(name = "COUNTRY1") 71 | private String country1; 72 | @Column(name = "COUNTRY2") 73 | private String country2; 74 | @OneToMany(mappedBy = "flid") 75 | private Collection seatCollection; 76 | @OneToMany(mappedBy = "fid") 77 | private Collection passangerCollection; 78 | 79 | public Flight() { 80 | } 81 | 82 | public Flight(Integer flightid) { 83 | this.flightid = flightid; 84 | } 85 | 86 | public Integer getFlightid() { 87 | return flightid; 88 | } 89 | 90 | public void setFlightid(Integer flightid) { 91 | Integer oldFlightid = this.flightid; 92 | this.flightid = flightid; 93 | changeSupport.firePropertyChange("flightid", oldFlightid, flightid); 94 | } 95 | 96 | public Integer getTerminal() { 97 | return terminal; 98 | } 99 | 100 | public void setTerminal(Integer terminal) { 101 | Integer oldTerminal = this.terminal; 102 | this.terminal = terminal; 103 | changeSupport.firePropertyChange("terminal", oldTerminal, terminal); 104 | } 105 | 106 | public Date getBtime() { 107 | return btime; 108 | } 109 | 110 | public void setBtime(Date btime) { 111 | Date oldBtime = this.btime; 112 | this.btime = btime; 113 | changeSupport.firePropertyChange("btime", oldBtime, btime); 114 | } 115 | 116 | public Date getDepartdate() { 117 | return departdate; 118 | } 119 | 120 | public void setDepartdate(Date departdate) { 121 | Date oldDepartdate = this.departdate; 122 | this.departdate = departdate; 123 | changeSupport.firePropertyChange("departdate", oldDepartdate, departdate); 124 | } 125 | 126 | public Date getReturndate() { 127 | return returndate; 128 | } 129 | 130 | public void setReturndate(Date returndate) { 131 | Date oldReturndate = this.returndate; 132 | this.returndate = returndate; 133 | changeSupport.firePropertyChange("returndate", oldReturndate, returndate); 134 | } 135 | 136 | public String getAirport1() { 137 | return airport1; 138 | } 139 | 140 | public void setAirport1(String airport1) { 141 | String oldAirport1 = this.airport1; 142 | this.airport1 = airport1; 143 | changeSupport.firePropertyChange("airport1", oldAirport1, airport1); 144 | } 145 | 146 | public String getAirport2() { 147 | return airport2; 148 | } 149 | 150 | public void setAirport2(String airport2) { 151 | String oldAirport2 = this.airport2; 152 | this.airport2 = airport2; 153 | changeSupport.firePropertyChange("airport2", oldAirport2, airport2); 154 | } 155 | 156 | public String getCountry1() { 157 | return country1; 158 | } 159 | 160 | public void setCountry1(String country1) { 161 | String oldCountry1 = this.country1; 162 | this.country1 = country1; 163 | changeSupport.firePropertyChange("country1", oldCountry1, country1); 164 | } 165 | 166 | public String getCountry2() { 167 | return country2; 168 | } 169 | 170 | public void setCountry2(String country2) { 171 | String oldCountry2 = this.country2; 172 | this.country2 = country2; 173 | changeSupport.firePropertyChange("country2", oldCountry2, country2); 174 | } 175 | 176 | @XmlTransient 177 | public Collection getSeatCollection() { 178 | return seatCollection; 179 | } 180 | 181 | public void setSeatCollection(Collection seatCollection) { 182 | this.seatCollection = seatCollection; 183 | } 184 | 185 | @XmlTransient 186 | public Collection getPassangerCollection() { 187 | return passangerCollection; 188 | } 189 | 190 | public void setPassangerCollection(Collection passangerCollection) { 191 | this.passangerCollection = passangerCollection; 192 | } 193 | 194 | @Override 195 | public int hashCode() { 196 | int hash = 0; 197 | hash += (flightid != null ? flightid.hashCode() : 0); 198 | return hash; 199 | } 200 | 201 | @Override 202 | public boolean equals(Object object) { 203 | // TODO: Warning - this method won't work in the case the id fields are not set 204 | if (!(object instanceof Flight)) { 205 | return false; 206 | } 207 | Flight other = (Flight) object; 208 | if ((this.flightid == null && other.flightid != null) || (this.flightid != null && !this.flightid.equals(other.flightid))) { 209 | return false; 210 | } 211 | return true; 212 | } 213 | 214 | @Override 215 | public String toString() { 216 | // return "javaapplication27.Flight[ flightid=" + flightid + " ]"; 217 | return flightid.toString(); 218 | } 219 | 220 | public void addPropertyChangeListener(PropertyChangeListener listener) { 221 | changeSupport.addPropertyChangeListener(listener); 222 | } 223 | 224 | public void removePropertyChangeListener(PropertyChangeListener listener) { 225 | changeSupport.removePropertyChangeListener(listener); 226 | } 227 | 228 | } 229 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame7.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/Bundle.properties: -------------------------------------------------------------------------------- 1 | # To change this license header, choose License Headers in Project Properties. 2 | # To change this template file, choose Tools | Templates 3 | # and open the template in the editor. 4 | 5 | NewJFrame2.jLabel39.text=Contact Number: 6 | NewJFrame2.jLabel23.text=jLabel23 7 | NewJFrame2.jButton21.text=Back to Menu 8 | NewJFrame2.jLabel38.text=Email: 9 | NewJFrame2.jButton14.text=View Report 10 | NewJFrame2.jLabel37.text=Customer Name 11 | NewJFrame2.jLabel34.text=Customer Email 12 | NewJFrame2.jLabel33.text=\ \ \ \ \ \ \ \ \ \ \ \ View Annual Report 13 | NewJFrame2.jLabel31.text=Total number of Customers: 14 | NewJFrame2.jLabel29.text=Total number of Passangers: 15 | NewJFrame2.jLabel28.text=Total number of Earnings: 16 | NewJFrame2.jButton13.text=View Progress 17 | NewJFrame2.jLabel27.text=Compare Passanger Ammount 18 | NewJFrame2.jTextField11.text=jTextField9 19 | NewJFrame2.jLabel26.text=FlightID3: 20 | NewJFrame2.jTextField10.text=jTextField10 21 | NewJFrame2.jLabel1.text=jLabel1 22 | NewJFrame2.passangerQuery.query=SELECT p FROM Passanger p 23 | NewJFrame2.jTextField9.text=jTextField9 24 | NewJFrame2.jButton19.text=Add Member 25 | NewJFrame2.jButton3.text=View Reports 26 | NewJFrame2.customerQuery.query=SELECT c FROM Customer c 27 | NewJFrame2.jButton2.text=Go to member Area 28 | NewJFrame2.jButton1.text=Modify Reservation 29 | NewJFrame2.flightQuery1.query=SELECT f FROM Flight f 30 | NewJFrame2.flightQuery.query=SELECT f FROM Flight f 31 | NewJFrame2.seatQuery.query=SELECT s FROM Seat s 32 | NewJFrame2.jLabel25.text=FlightID2: 33 | NewJFrame2.jLabel24.text=FlightID1: 34 | NewJFrame2.jLabel35.text=jLabel35 35 | NewJFrame2.jButton20.text=Back to Menu 36 | NewJFrame2.jLabel43.text=UPDATE OR DELETE DETAILS 37 | NewJFrame2.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 38 | NewJFrame2.jLabel41.text=Passanger ID: 39 | NewJFrame2.jButton18.text=Remove Passanger 40 | NewJFrame2.jLabel2.text=jLabel2 41 | NewJFrame2.jButton24.text=Back to Menu 42 | NewJFrame2.jButton12.text=Update Customer/Passanger 43 | NewJFrame2.jButton5.text=ADD Seat 44 | NewJFrame2.jButton4.text=Add Flight 45 | NewJFrame2.jLabel3.text=jLabel3 46 | NewJFrame2.jButton22.text=Back to Menu 47 | NewJFrame2.jLabel11.text=\ \ \ SEAT MODIFICATION 48 | NewJFrame2.jRadioButton1.text=jRadioButton1 49 | NewJFrame2.jButton8.text=Delete 50 | NewJFrame2.jLabel10.text=Status: 51 | NewJFrame2.jLabel9.text=Child Price: 52 | NewJFrame2.jLabel8.text=Adult Price: 53 | NewJFrame2.jLabel7.text=FlightID: 54 | NewJFrame2.jLabel6.text=Seat Class: 55 | NewJFrame2.jLabel5.text=Seat Name: 56 | NewJFrame2.jLabel4.text=SeatID: 57 | NewJFrame2.jButton7.text=Update Seat 58 | NewJFrame2.jButton6.text=ADD Seat 59 | NewJFrame2.jLabel12.text=jLabel12 60 | NewJFrame2.jButton23.text=Back to Menu 61 | NewJFrame2.jButton11.text=UPDATE FLIGHT 62 | NewJFrame2.jButton10.text=REMOVE FLIGHT 63 | NewJFrame2.jButton9.text=ADD FLIGHT 64 | NewJFrame2.jLabel22.text=To: 65 | NewJFrame2.jLabel21.text=From: 66 | NewJFrame2.jLabel20.text=Return Date: 67 | NewJFrame2.jLabel19.text=Return Airport: 68 | NewJFrame2.jLabel18.text=Depart Airport: 69 | NewJFrame2.jLabel17.text=DepartDate: 70 | NewJFrame2.jLabel16.text=BTime: 71 | NewJFrame2.jLabel15.text=Terminal: 72 | NewJFrame2.jLabel14.text=FlightID: 73 | NewJFrame2.jButton17.text=Update Passanger 74 | NewJFrame2.jLabel13.text=\ \ \ FLIGHT MODIFICATION 75 | NewJFrame2.jButton16.text=Remove Customer 76 | NewJFrame2.jLabel42.text=CustomerID: 77 | NewJFrame2.jButton15.text=Update Customer 78 | NewJFrame2.jLabel40.text=Passanger Name: 79 | NewJFrame3.jButton1.toolTipText=Sign Up after filling all the fields 80 | NewJFrame3.jButton1.text=Sign Up 81 | NewJFrame3.jLabel5.text=\ \ Enter a User Name 82 | NewJFrame3.jLabel9.text=\ \ Confirm your password 83 | NewJFrame3.jLabel7.text=\ Confirm Password 84 | NewJFrame3.jLabel2.text=New Member Sign Up 85 | NewJFrame3.jLabel1.text=jLabel1 86 | NewJFrame3.jLabel8.text=\ \ Enter a Password 87 | NewJFrame3.jButton2.toolTipText=Exit Sign Up 88 | NewJFrame3.jButton2.text=X 89 | NewJFrame3.jCheckBox2.text=Show Password 90 | NewJFrame3.jLabel6.text=Password 91 | NewJFrame3.jCheckBox1.text=\ Show Password 92 | NewJFrame3.jLabel4.text=\ \ \ \ Sign Up 93 | NewJFrame3.jLabel10.text=*Your Password must be at least 8 characters 94 | NewJFrame3.jLabel3.text=\ User Name 95 | NewJFrame4.jLabel8.text=\ \ Enter your password 96 | NewJFrame4.jLabel1.text=\ \ Enter your user name 97 | NewJFrame4.jLabel6.text=Password 98 | NewJFrame4.jButton2.toolTipText=Exit Login 99 | NewJFrame4.jButton2.text=X 100 | NewJFrame4.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User name 101 | NewJFrame4.jLabel2.text=Member Login 102 | NewJFrame4.jCheckBox1.text=Show Password 103 | NewJFrame4.jLabel3.text=jLabel3 104 | NewJFrame4.jButton1.toolTipText=Click to Login 105 | NewJFrame4.jButton1.text=Login 106 | NewJFrame5.jTextField1.text=jTextField1 107 | NewJFrame5.jLabel1.text=\ \ Enter your user name 108 | NewJFrame5.jPasswordField1.text=jPasswordField1 109 | NewJFrame5.jButton2.toolTipText=Exit Login 110 | NewJFrame5.jButton2.text=X 111 | NewJFrame5.jLabel5.text=\ \ Enter your user name 112 | NewJFrame5.jCheckBox1.text=Show Password 113 | NewJFrame5.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User name 114 | NewJFrame5.jButton1.text=Login 115 | NewJFrame5.jLabel2.text=\ \ Admin Login 116 | NewJFrame5.jLabel3.text=jLabel3 117 | NewJFrame5.jLabel6.text=Password 118 | NewJFrame1.jButton12.text=Logout 119 | NewJFrame1.jLabel5.text=\ Sign Up 120 | NewJFrame1.jButton11.text=Logout 121 | NewJFrame1.jButton10.text=Log out 122 | NewJFrame1.jLabel3.text=jLabel3 123 | NewJFrame1.jLabel2.text=jLabel2 124 | NewJFrame1.jLabel18.text=jLabel18 125 | NewJFrame1.jLabel9.text=jLabel9 126 | NewJFrame1.jButton4.text=Proceed 127 | NewJFrame1.jButton6.text=Home 128 | NewJFrame1.jLabel33.text=Available Seats 129 | NewJFrame1.jLabel50.text=jLabel50 130 | 131 | # To change this license header, choose License Headers in Project Properties. 132 | # To change this template file, choose Tools | Templates 133 | # and open the template in the editor. 134 | NewJFrame1.jLabel51.text=jLabel12 135 | NewJFrame1.jButton9.text=Back 136 | NewJFrame1.jButton8.text=Back 137 | NewJFrame1.jButton7.text=Back 138 | NewJFrame1.jButton5.text=Continue 139 | NewJFrame1.jLabel77.text=jLabel12 140 | NewJFrame1.jLabel76.text=jLabel76 141 | NewJFrame1.jLabel75.text=Return Date 142 | NewJFrame1.jLabel74.text=jLabel74 143 | NewJFrame1.jLabel73.text=Deaprt Date 144 | NewJFrame1.jLabel72.text=jLabel72 145 | NewJFrame1.jLabel71.text=Passanger Name: 146 | NewJFrame1.jButton2.text=Search 147 | NewJFrame1.jLabel70.text=Passanger Pass 148 | NewJFrame1.jLabel16.text=\ \ \ \ \ \ \ \ \ Available Flights 149 | NewJFrame1.jLabel7.text=jLabel7 150 | NewJFrame1.jLabel12.text=jLabel12 151 | NewJFrame1.jRadioButton2.text=jRadioButton1 152 | NewJFrame1.jButton1.text=Search 153 | NewJFrame1.jLabel47.text=**Required a Class 154 | NewJFrame1.jLabel69.text=jLabel69 155 | NewJFrame1.jLabel68.text=Flight Id: 156 | NewJFrame1.jLabel67.text=jLabel67 157 | NewJFrame1.jLabel66.text=jLabel66 158 | NewJFrame1.jLabel65.text=Seat Id: 159 | NewJFrame1.jLabel64.text=Seat Name : 160 | NewJFrame1.jLabel63.text=jLabel63 161 | NewJFrame1.jLabel62.text=jLabel62 162 | NewJFrame1.jLabel37.text=**Required a Passanger type 163 | NewJFrame1.jLabel61.text=Terminal: 164 | NewJFrame1.jLabel36.text=**Required a return date 165 | NewJFrame1.jLabel60.text=Board Time: 166 | NewJFrame1.jLabel27.text=**Required a depart date 167 | NewJFrame1.jLabel15.text=Return 168 | NewJFrame1.jLabel11.text=To 169 | NewJFrame1.jLabel49.text=jLabel20 170 | NewJFrame1.jLabel28.text=**Required a Destination 171 | NewJFrame1.jRadioButton5.text=jRadioButton1 172 | NewJFrame1.jLabel59.text=jLabel59 173 | NewJFrame1.jLabel58.text=Return Airport 174 | NewJFrame1.jLabel57.text=jLabel57 175 | NewJFrame1.jLabel56.text=jLabel56 176 | NewJFrame1.jLabel43.text=jLabel43 177 | NewJFrame1.jLabel55.text=Depart Airport 178 | NewJFrame1.jLabel54.text=To 179 | NewJFrame1.jLabel53.text=From 180 | NewJFrame1.jRadioButton1.text=jRadioButton1 181 | NewJFrame1.jLabel25.text=Business Class 182 | NewJFrame1.jLabel17.text=Economy Class 183 | NewJFrame1.jLabel30.text=First Class 184 | NewJFrame1.jRadioButton7.text=jRadioButton1 185 | NewJFrame1.jLabel24.text=Child 186 | NewJFrame1.jRadioButton6.text=jRadioButton1 187 | NewJFrame1.jLabel23.text=Adult 188 | NewJFrame1.jLabel32.text=jLabel20 189 | NewJFrame1.jRadioButton10.text=Search Depart Airport 190 | NewJFrame1.jLabel31.text=jLabel20 191 | NewJFrame1.jLabel13.text=Return 192 | NewJFrame1.jLabel22.text=jLabel20 193 | NewJFrame1.jLabel26.text=**Required a Country 194 | NewJFrame1.jLabel14.text=Depart 195 | NewJFrame1.jLabel21.text=jLabel20 196 | NewJFrame1.flightQuery1.query=SELECT f FROM Flight f 197 | NewJFrame1.jLabel10.text=To 198 | NewJFrame1.jLabel20.text=jLabel19 199 | NewJFrame1.jComboBox3.toolTipText= 200 | NewJFrame1.jLabel19.text=jLabel19 201 | NewJFrame1.jRadioButton4.text=Search Return Airport 202 | NewJFrame1.jTextField1.text=jTextField1 203 | NewJFrame1.jButton15.text=View chart 204 | NewJFrame1.jLabel8.text=From 205 | NewJFrame1.flightQuery.query=SELECT f FROM Flight f 206 | NewJFrame1.jRadioButton12.text=jRadioButton12 207 | NewJFrame1.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 208 | NewJFrame1.jLabel29.text=One way Trip 209 | NewJFrame1.jLabel35.text=jLabel35 210 | NewJFrame1.jTextField9.text=jTextField9 211 | NewJFrame1.jLabel52.text=**Required all fields 212 | NewJFrame1.jTextField6.text=jTextField6 213 | NewJFrame1.jLabel41.text=Value: 214 | NewJFrame1.jButton3.text=Proceed 215 | NewJFrame1.jTextField8.text=jTextField7 216 | NewJFrame1.jLabel48.text=Email: 217 | NewJFrame1.jLabel45.text=Payment Type: 218 | NewJFrame1.jTextField7.text=jTextField7 219 | NewJFrame1.jLabel44.text=Customer Name: 220 | NewJFrame1.jTextField4.text=jTextField2 221 | NewJFrame1.jTextField3.text=jTextField2 222 | NewJFrame1.jTextField2.text=jTextField2 223 | NewJFrame1.jRadioButton9.text=Female 224 | NewJFrame1.jRadioButton8.text=Male 225 | NewJFrame1.jLabel42.text=Age: 226 | NewJFrame1.jLabel81.text=Search 227 | NewJFrame1.jLabel40.text=Contact No: 228 | NewJFrame1.jLabel39.text=E-mail: 229 | NewJFrame1.jLabel38.text=Name: 230 | NewJFrame1.jLabel46.text=Passanger Details and Payment Details 231 | NewJFrame1.jLabel1.text=jLabel1 232 | NewJFrame1.jLabel80.text=Time: 233 | NewJFrame1.jLabel6.text=\ Admin Login 234 | NewJFrame1.jLabel79.text=Date: 235 | NewJFrame1.jLabel78.text=jLabel78 236 | NewJFrame1.jLabel34.text=jLabel34 237 | NewJFrame1.jRadioButton3.text=Find cheapest flights 238 | NewJFrame1.jButton14.text=Logout 239 | NewJFrame1.jLabel4.text=\ \ \ \ \ \ Login 240 | NewJFrame1.jButton13.text=Logout 241 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/Bundle_fr_CA.properties: -------------------------------------------------------------------------------- 1 | # To change this license header, choose License Headers in Project Properties. 2 | # To change this template file, choose Tools | Templates 3 | # and open the template in the editor. 4 | 5 | NewJFrame2.jLabel39.text=num\u00e9ro de contact: 6 | NewJFrame2.jLabel23.text=jLabel23 7 | NewJFrame2.jButton21.text=retour au menu 8 | NewJFrame2.jLabel38.text=Email: 9 | NewJFrame2.jButton14.text=Voir le rapport 10 | NewJFrame2.jLabel37.text=Nom du client 11 | NewJFrame2.jLabel34.text=Customer Email 12 | NewJFrame2.jLabel33.text=\ \ \ \ \ \ \ \ \ \ \ \ Voir le rapport annuel 13 | NewJFrame2.jLabel31.text=nombre total de clients: 14 | NewJFrame2.jLabel29.text=nombre total de Passangers: 15 | NewJFrame2.jLabel28.text=nombre total de Earnings: 16 | NewJFrame2.jButton13.text=Voir les progr\u00e8s 17 | NewJFrame2.jLabel27.text=Comparer le montant du passager 18 | NewJFrame2.jTextField11.text=jTextField9 19 | NewJFrame2.jLabel26.text=ID de vol3: 20 | NewJFrame2.jTextField10.text=jTextField10 21 | NewJFrame2.jLabel1.text=jLabel1 22 | NewJFrame2.passangerQuery.query=SELECT p FROM Passanger p 23 | NewJFrame2.jTextField9.text=jTextField9 24 | NewJFrame2.jButton19.text=Ajouter un membre 25 | NewJFrame2.jButton3.text=Voir les rapports 26 | NewJFrame2.customerQuery.query=SELECT c FROM Customer c 27 | NewJFrame2.jButton2.text=Go to memebr area 28 | NewJFrame2.jButton1.text=Modifier la r\u00e9servation 29 | NewJFrame2.flightQuery1.query=SELECT f FROM Flight f 30 | NewJFrame2.flightQuery.query=SELECT f FROM Flight f 31 | NewJFrame2.seatQuery.query=SELECT s FROM Seat s 32 | NewJFrame2.jLabel25.text=ID de vol2: 33 | NewJFrame2.jLabel24.text=ID de vol1: 34 | NewJFrame2.jLabel35.text=jLabel35 35 | NewJFrame2.jButton20.text=Retour au menu 36 | NewJFrame2.jLabel43.text=UPDATE OR DELETE DETAILS 37 | NewJFrame2.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 38 | NewJFrame2.jLabel41.text=Passanger ID: 39 | NewJFrame2.jButton18.text=Retirer passanger 40 | NewJFrame2.jLabel2.text=jLabel2 41 | NewJFrame2.jButton24.text=Zur\u00fcck zum Men\u00fc 42 | NewJFrame2.jButton12.text=Mettre \u00e0 jour/Passanger 43 | NewJFrame2.jButton5.text=Ajouter si\u00e8ge 44 | NewJFrame2.jButton4.text=Ajouter un vol 45 | NewJFrame2.jLabel3.text=jLabel3 46 | NewJFrame2.jButton22.text=Retour au menu 47 | NewJFrame2.jLabel11.text=\ \ \ Modification du si\u00e8ge 48 | NewJFrame2.jRadioButton1.text=jRadioButton1 49 | NewJFrame2.jButton8.text=Effacer 50 | NewJFrame2.jLabel10.text=Statut: 51 | NewJFrame2.jLabel9.text=Prix \u200b\u200benfant: 52 | NewJFrame2.jLabel8.text=Prix \u200b\u200badulte: 53 | NewJFrame2.jLabel7.text=ID de vol: 54 | NewJFrame2.jLabel6.text=Classe de si\u00e8ge: 55 | NewJFrame2.jLabel5.text=Nom du si\u00e8ge: 56 | NewJFrame2.jLabel4.text=ID de si\u00e8ge: 57 | NewJFrame2.jButton7.text=Mise Seat 58 | NewJFrame2.jButton6.text=sio Seat 59 | NewJFrame2.jLabel12.text=jLabel12 60 | NewJFrame2.jButton23.text=Retour au menu 61 | NewJFrame2.jButton11.text=Mise \u00e0 jour 62 | NewJFrame2.jButton10.text=sios \u00e0 jour 63 | NewJFrame2.jButton9.text=Retour \u00e0 jour 64 | NewJFrame2.jLabel22.text=\u00c0 65 | NewJFrame2.jLabel21.text=De 66 | NewJFrame2.jLabel20.text=Date de retour 67 | NewJFrame2.jLabel19.text=Retour a\u00e9roport: 68 | NewJFrame2.jLabel18.text=A\u00e9roport de d\u00e9part: 69 | NewJFrame2.jLabel17.text=de d\u00e9part:: 70 | NewJFrame2.jLabel16.text=Btemps: 71 | NewJFrame2.jLabel15.text=Terminal: 72 | NewJFrame2.jLabel14.text=FlightID: 73 | NewJFrame2.jButton17.text=mettre \u00e0 jour 74 | NewJFrame2.jLabel13.text=\ \ \ Modification de vol 75 | NewJFrame2.jButton16.text=Supprimer le client 76 | NewJFrame2.jLabel42.text=ClientID : 77 | NewJFrame2.jButton15.text=Mettre \u00e0 jour 78 | NewJFrame2.jLabel40.text=Nom du Passanger: 79 | NewJFrame3.jButton1.toolTipText=Sign Up after filling all the fields 80 | NewJFrame3.jButton1.text=s'inscrire 81 | NewJFrame3.jLabel5.text=\ \ Entrez un nom 82 | NewJFrame3.jLabel9.text=\ \ Confirmez le mot 83 | NewJFrame3.jLabel7.text=\ Confirmez le mot 84 | NewJFrame3.jLabel2.text=Nouveau membre 85 | NewJFrame3.jLabel1.text=jLabel1 86 | NewJFrame3.jLabel8.text=\ \Entrer le mot 87 | NewJFrame3.jButton2.toolTipText=Exit Sign Up 88 | NewJFrame3.jButton2.text=X 89 | NewJFrame3.jCheckBox2.text=Entrer le mot 90 | NewJFrame3.jLabel6.text=Entrer le mot 91 | NewJFrame3.jCheckBox1.text=\ show le mot 92 | NewJFrame3.jLabel4.text=\ \ \ \ S'inscrire 93 | NewJFrame3.jLabel10.text=*mot de passe doit 8 94 | NewJFrame3.jLabel3.text=\ Nom d'utilisateur 95 | NewJFrame4.jLabel8.text=\ \ EEntrer le mot 96 | NewJFrame4.jLabel1.text=\ \ Entrer le mot 97 | NewJFrame4.jLabel6.text=le mot 98 | NewJFrame4.jButton2.toolTipText=quitter la con 99 | NewJFrame4.jButton2.text=X 100 | NewJFrame4.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Nom d'utilisateur 101 | NewJFrame4.jLabel2.text=Identifiant 102 | NewJFrame4.jCheckBox1.text= show le mot 103 | NewJFrame4.jLabel3.text=jLabel3 104 | NewJFrame4.jButton1.toolTipText=s'identifier 105 | NewJFrame4.jButton1.text=s'identifier 106 | NewJFrame5.jTextField1.text=jTextField1 107 | NewJFrame5.jLabel1.text=\ \ Nom d'utilisateur 108 | NewJFrame5.jPasswordField1.text=jPasswordField1 109 | NewJFrame5.jButton2.toolTipText=sortie 110 | NewJFrame5.jButton2.text=X 111 | NewJFrame5.jLabel5.text=\ \ Nom d'utilisateur 112 | NewJFrame5.jCheckBox1.text=montrer le se 113 | NewJFrame5.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ User name 114 | NewJFrame5.jButton1.text=S'identifier 115 | NewJFrame5.jLabel2.text=\ \ Connexion admin 116 | NewJFrame5.jLabel3.text=jLabel3 117 | NewJFrame5.jLabel6.text=Mot de passe 118 | NewJFrame1.jButton12.text=Connectez 119 | NewJFrame1.jLabel5.text=\ S'inscrire 120 | NewJFrame1.jButton11.text=Connectez 121 | NewJFrame1.jButton10.text=Connectez 122 | NewJFrame1.jLabel3.text=jLabel3 123 | NewJFrame1.jLabel2.text=jLabel2 124 | NewJFrame1.jLabel18.text=jLabel18 125 | NewJFrame1.jLabel9.text=jLabel9 126 | NewJFrame1.jButton4.text=proc\u00e9der 127 | NewJFrame1.jButton6.text=Accueil 128 | NewJFrame1.jLabel33.text=Places libres 129 | NewJFrame1.jLabel50.text=jLabel50 130 | 131 | # To change this license header, choose License Headers in Project Properties. 132 | # To change this template file, choose Tools | Templates 133 | # and open the template in the editor. 134 | NewJFrame1.jLabel51.text=jLabel12 135 | NewJFrame1.jButton9.text=retour 136 | NewJFrame1.jButton8.text=retour 137 | NewJFrame1.jButton7.text=retour 138 | NewJFrame1.jButton5.text=Continuer 139 | NewJFrame1.jLabel77.text=jLabel12 140 | NewJFrame1.jLabel76.text=jLabel76 141 | NewJFrame1.jLabel75.text=Date de retour 142 | NewJFrame1.jLabel74.text=jLabel74 143 | NewJFrame1.jLabel73.text=Date de d\u00e9part 144 | NewJFrame1.jLabel72.text=jLabel72 145 | NewJFrame1.jLabel71.text=Nom du passager: 146 | NewJFrame1.jButton2.text=Chercher 147 | NewJFrame1.jLabel70.text=Pass Passager 148 | NewJFrame1.jLabel16.text=\ \ \ \ \ \ \ \ \ Flghts disponibles 149 | NewJFrame1.jLabel7.text=jLabel7 150 | NewJFrame1.jLabel12.text=jLabel12 151 | NewJFrame1.jRadioButton2.text=jRadioButton1 152 | NewJFrame1.jButton1.text=Search 153 | NewJFrame1.jLabel47.text=**Requis un cours 154 | NewJFrame1.jLabel69.text=jLabel69 155 | NewJFrame1.jLabel68.text=Flight Id: 156 | NewJFrame1.jLabel67.text=jLabel67 157 | NewJFrame1.jLabel66.text=jLabel66 158 | NewJFrame1.jLabel65.text=ID de vol: 159 | NewJFrame1.jLabel64.text=Nom du si\u00e8ge : 160 | NewJFrame1.jLabel63.text=jLabel63 161 | NewJFrame1.jLabel62.text=jLabel62 162 | NewJFrame1.jLabel37.text=**Type de passager requis 163 | NewJFrame1.jLabel61.text=Terminal: 164 | NewJFrame1.jLabel36.text=**Obligatoire Type de retour 165 | NewJFrame1.jLabel60.text=Heure du co: 166 | NewJFrame1.jLabel27.text=**Date de d\u00e9part requise 167 | NewJFrame1.jLabel15.text=Revenir 168 | NewJFrame1.jLabel11.text=\u00c0 169 | NewJFrame1.jLabel49.text=jLabel20 170 | NewJFrame1.jLabel28.text=**Requis une destination 171 | NewJFrame1.jRadioButton5.text=jRadioButton1 172 | NewJFrame1.jLabel59.text=jLabel59 173 | NewJFrame1.jLabel58.text=Retour a\u00e9roport 174 | NewJFrame1.jLabel57.text=jLabel57 175 | NewJFrame1.jLabel56.text=jLabel56 176 | NewJFrame1.jLabel43.text=jLabel43 177 | NewJFrame1.jLabel55.text=D\u00e9part de l'a\u00e9roport 178 | NewJFrame1.jLabel54.text=\u00c0 179 | NewJFrame1.jLabel53.text=De 180 | NewJFrame1.jRadioButton1.text=jRadioButton1 181 | NewJFrame1.jLabel25.text=Classe affaire 182 | NewJFrame1.jLabel17.text=Classe \u00e9conomique 183 | NewJFrame1.jLabel30.text=Premi\u00e8re classe 184 | NewJFrame1.jRadioButton7.text=jRadioButton1 185 | NewJFrame1.jLabel24.text=Enfant 186 | NewJFrame1.jRadioButton6.text=jRadioButton1 187 | NewJFrame1.jLabel23.text=Adulte 188 | NewJFrame1.jLabel32.text=jLabel20 189 | NewJFrame1.jRadioButton10.text=rechercher un a\u00e9roport de 190 | NewJFrame1.jLabel31.text=jLabel20 191 | NewJFrame1.jLabel13.text=Return 192 | NewJFrame1.jLabel22.text=jLabel20 193 | NewJFrame1.jLabel26.text=**pays requis 194 | NewJFrame1.jLabel14.text=Partir 195 | NewJFrame1.jLabel21.text=jLabel20 196 | NewJFrame1.flightQuery1.query=SELECT f FROM Flight f 197 | NewJFrame1.jLabel10.text=\u00c0 198 | NewJFrame1.jLabel20.text=jLabel19 199 | NewJFrame1.jComboBox3.toolTipText= 200 | NewJFrame1.jLabel19.text=jLabel19 201 | NewJFrame1.jRadioButton4.text=rechercher un a\u00e9roport 202 | NewJFrame1.jTextField1.text=jTextField1 203 | NewJFrame1.jButton15.text=voir legraph 204 | NewJFrame1.jLabel8.text=De 205 | NewJFrame1.flightQuery.query=SELECT f FROM Flight f 206 | NewJFrame1.jRadioButton12.text=jRadioButton12 207 | NewJFrame1.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 208 | NewJFrame1.jLabel29.text=Un voyage sans 209 | NewJFrame1.jLabel35.text=jLabel35 210 | NewJFrame1.jTextField9.text=jTextField9 211 | NewJFrame1.jLabel52.text=**Obligatoire tous les 212 | NewJFrame1.jTextField6.text=jTextField6 213 | NewJFrame1.jLabel41.text=Valeur: 214 | NewJFrame1.jButton3.text=Proc\u00e9der 215 | NewJFrame1.jTextField8.text=jTextField7 216 | NewJFrame1.jLabel48.text=Email: 217 | NewJFrame1.jLabel45.text=Type de paiement: 218 | NewJFrame1.jTextField7.text=jTextField7 219 | NewJFrame1.jLabel44.text=Nom du client:: 220 | NewJFrame1.jTextField4.text=jTextField2 221 | NewJFrame1.jTextField3.text=jTextField2 222 | NewJFrame1.jTextField2.text=jTextField2 223 | NewJFrame1.jRadioButton9.text=Femelle 224 | NewJFrame1.jRadioButton8.text=Melle 225 | NewJFrame1.jLabel42.text=\u00c2ge: 226 | NewJFrame1.jLabel81.text=Chercher 227 | NewJFrame1.jLabel40.text=NO de contact: 228 | NewJFrame1.jLabel39.text=E-mail: 229 | NewJFrame1.jLabel38.text=Pr\u00e9nom: 230 | NewJFrame1.jLabel46.text=Passanger Details and Payment Details 231 | NewJFrame1.jLabel1.text=jLabel1 232 | NewJFrame1.jLabel80.text=Temps: 233 | NewJFrame1.jLabel6.text=\ Login admin 234 | NewJFrame1.jLabel79.text=Rendez: 235 | NewJFrame1.jLabel78.text=jLabel78 236 | NewJFrame1.jLabel34.text=jLabel34 237 | NewJFrame1.jRadioButton3.text=Vols les moins chers 238 | NewJFrame1.jButton14.text=Connectez 239 | NewJFrame1.jLabel4.text=\ \ \ \ \ \ S'identifier 240 | NewJFrame1.jButton13.text=Connectez 241 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/Bundle_de_DE.properties: -------------------------------------------------------------------------------- 1 | # To change this license header, choose License Headers in Project Properties. 2 | # To change this template file, choose Tools | Templates 3 | # and open the template in the editor. 4 | 5 | NewJFrame2.jLabel39.text=Kontakt Nummer: 6 | NewJFrame2.jLabel23.text=jLabel23 7 | NewJFrame2.jButton21.text=Zur\u00fcck zum Men\u00fc 8 | NewJFrame2.jLabel38.text=Email: 9 | NewJFrame2.jButton14.text=Zeige Bericht 10 | NewJFrame2.jLabel37.text=Kundenname 11 | NewJFrame2.jLabel34.text=KudennEmail 12 | NewJFrame2.jLabel33.text=\ \ \ \ \ \ \ \ \ \ \ \ View Annual Report 13 | NewJFrame2.jLabel31.text=Gesamtzahl der Kunden: 14 | NewJFrame2.jLabel29.text=Gesamtzahl der Passagiere: 15 | NewJFrame2.jLabel28.text=Gesamtzahl der Einnahmen: 16 | NewJFrame2.jButton13.text=Fortschritt anzeigen 17 | NewJFrame2.jLabel27.text=Vergleichen Sie die H\u00f6he der 18 | NewJFrame2.jTextField11.text=jTextField9 19 | NewJFrame2.jLabel26.text=FlugID3: 20 | NewJFrame2.jTextField10.text=jTextField10 21 | NewJFrame2.jLabel1.text=jLabel1 22 | NewJFrame2.passangerQuery.query=SELECT p FROM Passanger p 23 | NewJFrame2.jTextField9.text=jTextField9 24 | NewJFrame2.jButton19.text=Mitg zuf\u00fcgen 25 | NewJFrame2.jButton3.text=Berichte anzeigen 26 | NewJFrame2.customerQuery.query=SELECT c FROM Customer c 27 | NewJFrame2.jButton2.text=Gehe zum Mitgliederbereich 28 | NewJFrame2.jButton1.text=Reservierung \u00e4ndern 29 | NewJFrame2.flightQuery1.query=SELECT f FROM Flight f 30 | NewJFrame2.flightQuery.query=SELECT f FROM Flight f 31 | NewJFrame2.seatQuery.query=SELECT s FROM Seat s 32 | NewJFrame2.jLabel25.text=FlugID2: 33 | NewJFrame2.jLabel24.text=FlugID1: 34 | NewJFrame2.jLabel35.text=jLabel35 35 | NewJFrame2.jButton20.text=Zur\u00fcck zum Men\u00fc 36 | NewJFrame2.jLabel43.text=Details aktualisieren oder sts 37 | NewJFrame2.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 38 | NewJFrame2.jLabel41.text=Passagier ID: 39 | NewJFrame2.jButton18.text= L\u00f6schen Passanger 40 | NewJFrame2.jLabel2.text=jLabel2 41 | NewJFrame2.jButton24.text=Zur\u00fcck zum Men\u00fc 42 | NewJFrame2.jButton12.text=Update Customer/Passanger 43 | NewJFrame2.jButton5.text=Sitz hinzuf\u00fcgen 44 | NewJFrame2.jButton4.text=Flug hinzuf\u00fcgen 45 | NewJFrame2.jLabel3.text=jLabel3 46 | NewJFrame2.jButton22.text=Zur\u00fcck zum Men\u00fc 47 | NewJFrame2.jLabel11.text=\ \ \ Sitz\u00e4nderung 48 | NewJFrame2.jRadioButton1.text=jRadioButton1 49 | NewJFrame2.jButton8.text=L\u00f6schen 50 | NewJFrame2.jLabel10.text=Status: 51 | NewJFrame2.jLabel9.text=Kind Price: 52 | NewJFrame2.jLabel8.text=Erwachsene Price: 53 | NewJFrame2.jLabel7.text=FlugID: 54 | NewJFrame2.jLabel6.text=Sitz Class: 55 | NewJFrame2.jLabel5.text=Sitz Name: 56 | NewJFrame2.jLabel4.text=SitzID: 57 | NewJFrame2.jButton7.text=aktualisieren Seat 58 | NewJFrame2.jButton6.text=hinzuf\u00fcgen Seat 59 | NewJFrame2.jLabel12.text=jLabel12 60 | NewJFrame2.jButton23.text=zur\u00fcck zum Men\u00fc 61 | NewJFrame2.jButton11.text=Flug aktualisieren 62 | NewJFrame2.jButton10.text=L\u00f6schen FLIGHT 63 | NewJFrame2.jButton9.text=hinzuf\u00fcgen FLIGHT 64 | NewJFrame2.jLabel22.text=zu: 65 | NewJFrame2.jLabel21.text=Von: 66 | NewJFrame2.jLabel20.text=R\u00fcckflugdatum: 67 | NewJFrame2.jLabel19.text=Flughafen zur\u00fcck: 68 | NewJFrame2.jLabel18.text=Abflughafen: 69 | NewJFrame2.jLabel17.text=Abfahrtsdatum: 70 | NewJFrame2.jLabel16.text=Bzeit: 71 | NewJFrame2.jLabel15.text=Terminal: 72 | NewJFrame2.jLabel14.text=FlugID: 73 | NewJFrame2.jButton17.text=Update Passanger 74 | NewJFrame2.jLabel13.text=\ \ \ Flug\u00e4nderung 75 | NewJFrame2.jButton16.text=Kunden entfernen 76 | NewJFrame2.jLabel42.text=Kundennummer: 77 | NewJFrame2.jButton15.text=Kunden aktualisieren 78 | NewJFrame2.jLabel40.text=Passagier-Name: 79 | NewJFrame3.jButton1.toolTipText=Melden Sie sich an, nachdem Sie alle Felder ausgef\u00fcllt haben 80 | NewJFrame3.jButton1.text=Anmelden 81 | NewJFrame3.jLabel5.text=\ \ Gebe einen Benutzernamen ein 82 | NewJFrame3.jLabel9.text=\ \ Passwort best\u00e4tigen 83 | NewJFrame3.jLabel7.text=\ Passwort best\u00e4tigen 84 | NewJFrame3.jLabel2.text=Anmeldung neuer Mitglieder 85 | NewJFrame3.jLabel1.text=jLabel1 86 | NewJFrame3.jLabel8.text=\ \ Geben Sie ein Passwort ein 87 | NewJFrame3.jButton2.toolTipText=Ausfahrt 88 | NewJFrame3.jButton2.text=X 89 | NewJFrame3.jCheckBox2.text=Passwort anzeigen 90 | NewJFrame3.jLabel6.text=Passwort 91 | NewJFrame3.jCheckBox1.text=\ Passwort anzeigen 92 | NewJFrame3.jLabel4.text=\ \ \ \ Anmelden 93 | NewJFrame3.jLabel10.text=*Die Kennwortl\u00e4nge muss mindestens 8 Zeichen betragen 94 | NewJFrame3.jLabel3.text=\ Nutzername 95 | NewJFrame4.jLabel8.text=\ \ Geben Sie Ihr Passwort ein 96 | NewJFrame4.jLabel1.text=\ \ Geben Sie Ihren Benutzernamen ein 97 | NewJFrame4.jLabel6.text=Passwort 98 | NewJFrame4.jButton2.toolTipText=Ausfahrt 99 | NewJFrame4.jButton2.text=X 100 | NewJFrame4.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Nutzername 101 | NewJFrame4.jLabel2.text=Login f\u00fcr Mitglieder 102 | NewJFrame4.jCheckBox1.text=Passwort anzeigen 103 | NewJFrame4.jLabel3.text=jLabel3 104 | NewJFrame4.jButton1.toolTipText=Klicken Sie hier, um sich anzumelden 105 | NewJFrame4.jButton1.text=Anmeldung 106 | NewJFrame5.jTextField1.text=jTextField1 107 | NewJFrame5.jLabel1.text=\ \ Geben Sie Ihren Benutzernamen ein 108 | NewJFrame5.jPasswordField1.text=jPasswordField1 109 | NewJFrame5.jButton2.toolTipText=Login verlassen 110 | NewJFrame5.jButton2.text=X 111 | NewJFrame5.jLabel5.text=\ \ Geben Sie Ihren Benutzernamen ein 112 | NewJFrame5.jCheckBox1.text=Passwort anzeigen 113 | NewJFrame5.jLabel4.text=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Nutzername 114 | NewJFrame5.jButton1.text=Anmeldung 115 | NewJFrame5.jLabel2.text=\ \ Admin Anmeldung 116 | NewJFrame5.jLabel3.text=jLabel3 117 | NewJFrame5.jLabel6.text=Passwort 118 | NewJFrame1.jButton12.text=Ausloggen 119 | NewJFrame1.jLabel5.text=\ Anmelden 120 | NewJFrame1.jButton11.text=Ausloggen 121 | NewJFrame1.jButton10.text=Ausloggen 122 | NewJFrame1.jLabel3.text=jLabel3 123 | NewJFrame1.jLabel2.text=jLabel2 124 | NewJFrame1.jLabel18.text=jLabel18 125 | NewJFrame1.jLabel9.text=jLabel9 126 | NewJFrame1.jButton4.text=Vorgehen 127 | NewJFrame1.jButton6.text=Zuhause 128 | NewJFrame1.jLabel33.text=verf\u00fcgbare Sitzpl\u00e4tze 129 | NewJFrame1.jLabel50.text=jLabel50 130 | 131 | # To change this license header, choose License Headers in Project Properties. 132 | # To change this template file, choose Tools | Templates 133 | # and open the template in the editor. 134 | NewJFrame1.jLabel51.text=jLabel12 135 | NewJFrame1.jButton9.text=zur\u00fcck 136 | NewJFrame1.jButton8.text=zur\u00fcck 137 | NewJFrame1.jButton7.text=zur\u00fcck 138 | NewJFrame1.jButton5.text=fortsetzen 139 | NewJFrame1.jLabel77.text=jLabel12 140 | NewJFrame1.jLabel76.text=jLabel76 141 | NewJFrame1.jLabel75.text=R\u00fcckflugdatum 142 | NewJFrame1.jLabel74.text=jLabel74 143 | NewJFrame1.jLabel73.text=Abfahrtsdatum 144 | NewJFrame1.jLabel72.text=jLabel72 145 | NewJFrame1.jLabel71.text=Passagier-Name : 146 | NewJFrame1.jButton2.text=Suche 147 | NewJFrame1.jLabel70.text=Passagierpass 148 | NewJFrame1.jLabel16.text=\ \ \ \ \ \ \ \ \ Verf\u00fcgbare Fl\u00fcge 149 | NewJFrame1.jLabel7.text=jLabel7 150 | NewJFrame1.jLabel12.text=jLabel12 151 | NewJFrame1.jRadioButton2.text=jRadioButton1 152 | NewJFrame1.jButton1.text=Suche 153 | NewJFrame1.jLabel47.text=**Erforderliche Klasse 154 | NewJFrame1.jLabel69.text=jLabel69 155 | NewJFrame1.jLabel68.text=Flug Id: 156 | NewJFrame1.jLabel67.text=jLabel67 157 | NewJFrame1.jLabel66.text=jLabel66 158 | NewJFrame1.jLabel65.text=Sitz Id: 159 | NewJFrame1.jLabel64.text=Sitz Name : 160 | NewJFrame1.jLabel63.text=jLabel63 161 | NewJFrame1.jLabel62.text=jLabel62 162 | NewJFrame1.jLabel37.text=**Erforderlicher Passantentyp 163 | NewJFrame1.jLabel61.text=Terminal: 164 | NewJFrame1.jLabel36.text=**ein R\u00fcckgabedatum erforderlich 165 | NewJFrame1.jLabel60.text=Bordzeit: 166 | NewJFrame1.jLabel27.text=**ein Abflugdatum erforderlich 167 | NewJFrame1.jLabel15.text=R\u00fcckkehr 168 | NewJFrame1.jLabel11.text=Zu 169 | NewJFrame1.jLabel49.text=jLabel20 170 | NewJFrame1.jLabel28.text=**Ben\u00f6tigt ein Ziel 171 | NewJFrame1.jRadioButton5.text=jRadioButton1 172 | NewJFrame1.jLabel59.text=jLabel59 173 | NewJFrame1.jLabel58.text=Flughafen zur\u00fcck 174 | NewJFrame1.jLabel57.text=jLabel57 175 | NewJFrame1.jLabel56.text=jLabel56 176 | NewJFrame1.jLabel43.text=jLabel43 177 | NewJFrame1.jLabel55.text=Abflughafen 178 | NewJFrame1.jLabel54.text=Zu 179 | NewJFrame1.jLabel53.text=Von 180 | NewJFrame1.jRadioButton1.text=jRadioButton1 181 | NewJFrame1.jLabel25.text=Business-Klasse 182 | NewJFrame1.jLabel17.text=Economy-Klasse 183 | NewJFrame1.jLabel30.text=zuerst-Klasse 184 | NewJFrame1.jRadioButton7.text=jRadioButton1 185 | NewJFrame1.jLabel24.text=Kind 186 | NewJFrame1.jRadioButton6.text=jRadioButton1 187 | NewJFrame1.jLabel23.text=Erwachsene 188 | NewJFrame1.jLabel32.text=jLabel20 189 | NewJFrame1.jRadioButton10.text=suche abflughafen 190 | NewJFrame1.jLabel31.text=jLabel20 191 | NewJFrame1.jLabel13.text=R\u00fcckkehr 192 | NewJFrame1.jLabel22.text=jLabel20 193 | NewJFrame1.jLabel26.text=**Ben\u00f6tigt ein Land 194 | NewJFrame1.jLabel14.text=Abfliegen 195 | NewJFrame1.jLabel21.text=jLabel20 196 | NewJFrame1.flightQuery1.query=SELECT f FROM Flight f 197 | NewJFrame1.jLabel10.text=To 198 | NewJFrame1.jLabel20.text=jLabel19 199 | NewJFrame1.jComboBox3.toolTipText= 200 | NewJFrame1.jLabel19.text=jLabel19 201 | NewJFrame1.jRadioButton4.text=R\u00fcckflug suchen 202 | NewJFrame1.jTextField1.text=jTextField1 203 | NewJFrame1.jButton15.text=Diagramm anzeigen 204 | NewJFrame1.jLabel8.text=von 205 | NewJFrame1.flightQuery.query=SELECT f FROM Flight f 206 | NewJFrame1.jRadioButton12.text=jRadioButton12 207 | NewJFrame1.JavaApplication27PUEntityManager.persistenceUnit=JavaApplication27PU 208 | NewJFrame1.jLabel29.text=Einwegtrip 209 | NewJFrame1.jLabel35.text=jLabel35 210 | NewJFrame1.jTextField9.text=jTextField9 211 | NewJFrame1.jLabel52.text=**Alle Felder m\u00fcssen ausgef\u00fcllt werden 212 | NewJFrame1.jTextField6.text=jTextField6 213 | NewJFrame1.jLabel41.text=Wert: 214 | NewJFrame1.jButton3.text=Vorgehen 215 | NewJFrame1.jTextField8.text=jTextField7 216 | NewJFrame1.jLabel48.text=Email: 217 | NewJFrame1.jLabel45.text=Zahlungsart: 218 | NewJFrame1.jTextField7.text=jTextField7 219 | NewJFrame1.jLabel44.text=Kundenname: 220 | NewJFrame1.jTextField4.text=jTextField2 221 | NewJFrame1.jTextField3.text=jTextField2 222 | NewJFrame1.jTextField2.text=jTextField2 223 | NewJFrame1.jRadioButton9.text=Weiblich 224 | NewJFrame1.jRadioButton8.text=m\u00e4nnlich 225 | NewJFrame1.jLabel42.text=Alter: 226 | NewJFrame1.jLabel81.text=Suche 227 | NewJFrame1.jLabel40.text=Kontakt Nummer: 228 | NewJFrame1.jLabel39.text=E-mail: 229 | NewJFrame1.jLabel38.text=Name: 230 | NewJFrame1.jLabel46.text=Passanger Details und Zahlungsdetails 231 | NewJFrame1.jLabel1.text=jLabel1 232 | NewJFrame1.jLabel80.text=Zeit: 233 | NewJFrame1.jLabel6.text=\ Anmeldung 234 | NewJFrame1.jLabel79.text=Datum: 235 | NewJFrame1.jLabel78.text=jLabel78 236 | NewJFrame1.jLabel34.text=jLabel34 237 | NewJFrame1.jRadioButton3.text=Finden Sie billigste Fl\u00fcge 238 | NewJFrame1.jButton14.text=Ausloggen 239 | NewJFrame1.jLabel4.text=\ \ \ \ \ \ Anmeldung 240 | NewJFrame1.jButton13.text=Ausloggen 241 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame7.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To changjdbc:derby://localhost:1527/hasiya [hasiya on HASIYA]e this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.viewcontroller; 7 | 8 | import java.util.Locale; 9 | 10 | /** 11 | * 12 | * @author Hasindu 13 | */ 14 | public class NewJFrame7 extends javax.swing.JFrame { 15 | 16 | /** 17 | * Creates new form NewJFrame7 18 | */ 19 | public NewJFrame7() { 20 | initComponents(); 21 | } 22 | 23 | /** 24 | * This method is called from within the constructor to initialize the form. 25 | * WARNING: Do NOT modify this code. The content of this method is always 26 | * regenerated by the Form Editor. 27 | */ 28 | @SuppressWarnings("unchecked") 29 | // //GEN-BEGIN:initComponents 30 | private void initComponents() { 31 | 32 | jPanel2 = new javax.swing.JPanel(); 33 | jPanel1 = new javax.swing.JPanel(); 34 | jButton3 = new javax.swing.JButton(); 35 | jButton2 = new javax.swing.JButton(); 36 | jButton1 = new javax.swing.JButton(); 37 | jLabel1 = new javax.swing.JLabel(); 38 | 39 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 40 | 41 | jPanel2.setBackground(new java.awt.Color(51, 102, 255)); 42 | 43 | jPanel1.setBackground(new java.awt.Color(255, 255, 255)); 44 | 45 | jButton3.setBackground(new java.awt.Color(0, 0, 204)); 46 | jButton3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N 47 | jButton3.setForeground(new java.awt.Color(255, 255, 255)); 48 | jButton3.setText("German"); 49 | jButton3.addActionListener(new java.awt.event.ActionListener() { 50 | public void actionPerformed(java.awt.event.ActionEvent evt) { 51 | jButton3ActionPerformed(evt); 52 | } 53 | }); 54 | 55 | jButton2.setBackground(new java.awt.Color(0, 0, 204)); 56 | jButton2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N 57 | jButton2.setForeground(new java.awt.Color(255, 255, 255)); 58 | jButton2.setText("English"); 59 | jButton2.addActionListener(new java.awt.event.ActionListener() { 60 | public void actionPerformed(java.awt.event.ActionEvent evt) { 61 | jButton2ActionPerformed(evt); 62 | } 63 | }); 64 | 65 | jButton1.setBackground(new java.awt.Color(0, 0, 204)); 66 | jButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N 67 | jButton1.setForeground(new java.awt.Color(255, 255, 255)); 68 | jButton1.setText("French"); 69 | jButton1.addActionListener(new java.awt.event.ActionListener() { 70 | public void actionPerformed(java.awt.event.ActionEvent evt) { 71 | jButton1ActionPerformed(evt); 72 | } 73 | }); 74 | 75 | jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N 76 | jLabel1.setText(" SELECT A LANGUAGE "); 77 | 78 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); 79 | jPanel1.setLayout(jPanel1Layout); 80 | jPanel1Layout.setHorizontalGroup( 81 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 82 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() 83 | .addContainerGap(60, Short.MAX_VALUE) 84 | .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 85 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE) 86 | .addGroup(jPanel1Layout.createSequentialGroup() 87 | .addGap(10, 10, 10) 88 | .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 89 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) 90 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) 91 | .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)))) 92 | .addGap(42, 42, 42)) 93 | ); 94 | jPanel1Layout.setVerticalGroup( 95 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 96 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() 97 | .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE) 98 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 99 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) 100 | .addGap(27, 27, 27) 101 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) 102 | .addGap(27, 27, 27) 103 | .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) 104 | .addGap(33, 33, 33)) 105 | ); 106 | 107 | javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); 108 | jPanel2.setLayout(jPanel2Layout); 109 | jPanel2Layout.setHorizontalGroup( 110 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 111 | .addGroup(jPanel2Layout.createSequentialGroup() 112 | .addGap(61, 61, 61) 113 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 114 | .addContainerGap(48, Short.MAX_VALUE)) 115 | ); 116 | jPanel2Layout.setVerticalGroup( 117 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 118 | .addGroup(jPanel2Layout.createSequentialGroup() 119 | .addGap(26, 26, 26) 120 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 121 | .addContainerGap(24, Short.MAX_VALUE)) 122 | ); 123 | 124 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 125 | getContentPane().setLayout(layout); 126 | layout.setHorizontalGroup( 127 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 128 | .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 129 | ); 130 | layout.setVerticalGroup( 131 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 132 | .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 133 | ); 134 | 135 | pack(); 136 | }// //GEN-END:initComponents 137 | 138 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed 139 | 140 | NewJFrame1 f1= new NewJFrame1(new Locale("fr","CA"));//.setVisible(true); 141 | f1.setVisible(true); 142 | f1.jLabel4.setText(" S'iden"); 143 | f1.jLabel5.setText("S'inscrire"); 144 | f1.jLabel6.setText("Admin S'iden"); 145 | f1.jLabel79.setText("Rende"); 146 | f1.jLabel80.setText("Temps"); 147 | dispose(); 148 | }//GEN-LAST:event_jButton1ActionPerformed 149 | 150 | private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed 151 | 152 | new NewJFrame1().setVisible(true); 153 | dispose(); 154 | }//GEN-LAST:event_jButton2ActionPerformed 155 | 156 | private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed 157 | 158 | NewJFrame1 f2 = new NewJFrame1(new Locale("de","DE")); 159 | f2.setVisible(true); 160 | f2.jLabel4.setText(" Anmeldung"); 161 | f2.jLabel5.setText("Anmelden"); 162 | f2.jLabel6.setText("Admin Anmeldung"); 163 | f2.jLabel79.setText("Datum"); 164 | f2.jLabel80.setText("Zeit"); 165 | dispose(); 166 | 167 | 168 | }//GEN-LAST:event_jButton3ActionPerformed 169 | 170 | /** 171 | * @param args the command line arguments 172 | */ 173 | public static void main(String args[]) { 174 | /* Set the Nimbus look and feel */ 175 | // 176 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 177 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 178 | */ 179 | try { 180 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 181 | if ("Nimbus".equals(info.getName())) { 182 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 183 | break; 184 | } 185 | } 186 | } catch (ClassNotFoundException ex) { 187 | java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 188 | } catch (InstantiationException ex) { 189 | java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 190 | } catch (IllegalAccessException ex) { 191 | java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 192 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 193 | java.util.logging.Logger.getLogger(NewJFrame7.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 194 | } 195 | // 196 | 197 | /* Create and display the form */ 198 | java.awt.EventQueue.invokeLater(new Runnable() { 199 | 200 | public void run() { 201 | new NewJFrame7().setVisible(true); 202 | } 203 | }); 204 | } 205 | 206 | // Variables declaration - do not modify//GEN-BEGIN:variables 207 | private javax.swing.JButton jButton1; 208 | private javax.swing.JButton jButton2; 209 | private javax.swing.JButton jButton3; 210 | private javax.swing.JLabel jLabel1; 211 | private javax.swing.JPanel jPanel1; 212 | private javax.swing.JPanel jPanel2; 213 | // End of variables declaration//GEN-END:variables 214 | } 215 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame4.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.viewcontroller; 7 | 8 | import javaapplication27.entity.Login; 9 | import java.io.FileWriter; 10 | import java.text.SimpleDateFormat; 11 | import java.util.Calendar; 12 | import java.util.List; 13 | import java.util.Locale; 14 | import javax.persistence.EntityManager; 15 | import javax.persistence.EntityManagerFactory; 16 | import javax.persistence.Persistence; 17 | import javax.persistence.Query; 18 | import javax.swing.JOptionPane; 19 | 20 | /** 21 | * 22 | * @author Hasindu 23 | */ 24 | public class NewJFrame4 extends javax.swing.JFrame { 25 | 26 | /** 27 | * Creates new form NewJFrame4 28 | */ 29 | public NewJFrame4() { 30 | initComponents(); 31 | this.setLocationRelativeTo(null); 32 | 33 | } 34 | 35 | /** 36 | * This method is called from within the constructor to initialize the form. 37 | * WARNING: Do NOT modify this code. The content of this method is always 38 | * regenerated by the Form Editor. 39 | */ 40 | @SuppressWarnings("unchecked") 41 | // //GEN-BEGIN:initComponents 42 | private void initComponents() { 43 | 44 | jPanel1 = new javax.swing.JPanel(); 45 | jPanel3 = new javax.swing.JPanel(); 46 | jLabel3 = new javax.swing.JLabel(); 47 | jLabel2 = new javax.swing.JLabel(); 48 | jLabel4 = new javax.swing.JLabel(); 49 | jLabel6 = new javax.swing.JLabel(); 50 | jPanel4 = new javax.swing.JPanel(); 51 | jLabel1 = new javax.swing.JLabel(); 52 | jTextField2 = new javax.swing.JTextField(); 53 | jPanel2 = new javax.swing.JPanel(); 54 | jLabel8 = new javax.swing.JLabel(); 55 | jPasswordField1 = new javax.swing.JPasswordField(); 56 | jButton1 = new javax.swing.JButton(); 57 | jCheckBox1 = new javax.swing.JCheckBox(); 58 | jButton2 = new javax.swing.JButton(); 59 | 60 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 61 | setUndecorated(true); 62 | 63 | jPanel1.setBackground(new java.awt.Color(51, 102, 255)); 64 | 65 | jPanel3.setBackground(new java.awt.Color(255, 255, 255)); 66 | 67 | jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication27/assets/LoginIcon1.png"))); // NOI18N 68 | java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("javaapplication27/viewcontroller/Bundle"); // NOI18N 69 | jLabel3.setText(bundle.getString("NewJFrame4.jLabel3.text")); // NOI18N 70 | 71 | jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N 72 | jLabel2.setText(bundle.getString("NewJFrame4.jLabel2.text")); // NOI18N 73 | 74 | jLabel4.setText(bundle.getString("NewJFrame4.jLabel4.text")); // NOI18N 75 | 76 | jLabel6.setText(bundle.getString("NewJFrame4.jLabel6.text")); // NOI18N 77 | 78 | jPanel4.setPreferredSize(new java.awt.Dimension(137, 37)); 79 | 80 | jLabel1.setForeground(new java.awt.Color(102, 102, 102)); 81 | jLabel1.setText(bundle.getString("NewJFrame4.jLabel1.text")); // NOI18N 82 | jLabel1.addKeyListener(new java.awt.event.KeyAdapter() { 83 | public void keyPressed(java.awt.event.KeyEvent evt) { 84 | jLabel1KeyPressed(evt); 85 | } 86 | public void keyTyped(java.awt.event.KeyEvent evt) { 87 | jLabel1KeyTyped(evt); 88 | } 89 | }); 90 | 91 | jTextField2.addKeyListener(new java.awt.event.KeyAdapter() { 92 | public void keyPressed(java.awt.event.KeyEvent evt) { 93 | jTextField2KeyPressed(evt); 94 | } 95 | public void keyReleased(java.awt.event.KeyEvent evt) { 96 | jTextField2KeyReleased(evt); 97 | } 98 | public void keyTyped(java.awt.event.KeyEvent evt) { 99 | jTextField2KeyTyped(evt); 100 | } 101 | }); 102 | 103 | javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); 104 | jPanel4.setLayout(jPanel4Layout); 105 | jPanel4Layout.setHorizontalGroup( 106 | jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 107 | .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) 108 | .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 109 | .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) 110 | ); 111 | jPanel4Layout.setVerticalGroup( 112 | jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 113 | .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE) 114 | .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 115 | .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)) 116 | ); 117 | 118 | jPanel2.setPreferredSize(new java.awt.Dimension(213, 37)); 119 | jPanel2.setVerifyInputWhenFocusTarget(false); 120 | 121 | jLabel8.setForeground(new java.awt.Color(102, 102, 102)); 122 | jLabel8.setText(bundle.getString("NewJFrame4.jLabel8.text")); // NOI18N 123 | 124 | jPasswordField1.addKeyListener(new java.awt.event.KeyAdapter() { 125 | public void keyReleased(java.awt.event.KeyEvent evt) { 126 | jPasswordField1KeyReleased(evt); 127 | } 128 | public void keyTyped(java.awt.event.KeyEvent evt) { 129 | jPasswordField1KeyTyped(evt); 130 | } 131 | }); 132 | 133 | javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); 134 | jPanel2.setLayout(jPanel2Layout); 135 | jPanel2Layout.setHorizontalGroup( 136 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 137 | .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 138 | .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 139 | .addComponent(jPasswordField1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)) 140 | ); 141 | jPanel2Layout.setVerticalGroup( 142 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 143 | .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE) 144 | .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 145 | .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)) 146 | ); 147 | 148 | jButton1.setBackground(new java.awt.Color(0, 0, 204)); 149 | jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N 150 | jButton1.setForeground(new java.awt.Color(255, 255, 255)); 151 | jButton1.setText(bundle.getString("NewJFrame4.jButton1.text")); // NOI18N 152 | jButton1.setToolTipText(bundle.getString("NewJFrame4.jButton1.toolTipText")); // NOI18N 153 | jButton1.addMouseListener(new java.awt.event.MouseAdapter() { 154 | public void mousePressed(java.awt.event.MouseEvent evt) { 155 | jButton1MousePressed(evt); 156 | } 157 | }); 158 | 159 | jCheckBox1.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N 160 | jCheckBox1.setText(bundle.getString("NewJFrame4.jCheckBox1.text")); // NOI18N 161 | jCheckBox1.addActionListener(new java.awt.event.ActionListener() { 162 | public void actionPerformed(java.awt.event.ActionEvent evt) { 163 | jCheckBox1ActionPerformed(evt); 164 | } 165 | }); 166 | 167 | jButton2.setBackground(new java.awt.Color(0, 0, 204)); 168 | jButton2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N 169 | jButton2.setForeground(new java.awt.Color(255, 255, 255)); 170 | jButton2.setText(bundle.getString("NewJFrame4.jButton2.text")); // NOI18N 171 | jButton2.setToolTipText(bundle.getString("NewJFrame4.jButton2.toolTipText")); // NOI18N 172 | jButton2.addActionListener(new java.awt.event.ActionListener() { 173 | public void actionPerformed(java.awt.event.ActionEvent evt) { 174 | jButton2ActionPerformed(evt); 175 | } 176 | }); 177 | 178 | javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); 179 | jPanel3.setLayout(jPanel3Layout); 180 | jPanel3Layout.setHorizontalGroup( 181 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 182 | .addGroup(jPanel3Layout.createSequentialGroup() 183 | .addGap(31, 31, 31) 184 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 185 | .addGroup(jPanel3Layout.createSequentialGroup() 186 | .addGap(27, 27, 27) 187 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)) 188 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) 189 | .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 190 | .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)) 191 | .addComponent(jCheckBox1)) 192 | .addGap(0, 33, Short.MAX_VALUE)) 193 | .addGroup(jPanel3Layout.createSequentialGroup() 194 | .addGap(69, 69, 69) 195 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 196 | .addGroup(jPanel3Layout.createSequentialGroup() 197 | .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) 198 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE) 199 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)) 200 | .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))) 201 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() 202 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 203 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE) 204 | .addGap(84, 84, 84)) 205 | .addGroup(jPanel3Layout.createSequentialGroup() 206 | .addGap(105, 105, 105) 207 | .addComponent(jLabel6) 208 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 209 | ); 210 | jPanel3Layout.setVerticalGroup( 211 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 212 | .addGroup(jPanel3Layout.createSequentialGroup() 213 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 214 | .addGroup(jPanel3Layout.createSequentialGroup() 215 | .addContainerGap() 216 | .addComponent(jLabel3)) 217 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) 218 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 219 | .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) 220 | .addGap(1, 1, 1) 221 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 222 | .addGap(5, 5, 5) 223 | .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 224 | .addGap(25, 25, 25) 225 | .addComponent(jLabel6) 226 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 227 | .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 228 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 229 | .addComponent(jCheckBox1) 230 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE) 231 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) 232 | .addGap(37, 37, 37)) 233 | ); 234 | 235 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); 236 | jPanel1.setLayout(jPanel1Layout); 237 | jPanel1Layout.setHorizontalGroup( 238 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 239 | .addGroup(jPanel1Layout.createSequentialGroup() 240 | .addGap(20, 20, 20) 241 | .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 242 | .addContainerGap(20, Short.MAX_VALUE)) 243 | ); 244 | jPanel1Layout.setVerticalGroup( 245 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 246 | .addGroup(jPanel1Layout.createSequentialGroup() 247 | .addGap(19, 19, 19) 248 | .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 249 | .addContainerGap(19, Short.MAX_VALUE)) 250 | ); 251 | 252 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 253 | getContentPane().setLayout(layout); 254 | layout.setHorizontalGroup( 255 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 256 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 257 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 258 | .addGap(0, 0, 0)) 259 | ); 260 | layout.setVerticalGroup( 261 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 262 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 263 | ); 264 | 265 | pack(); 266 | }// //GEN-END:initComponents 267 | 268 | private void jLabel1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jLabel1KeyTyped 269 | 270 | }//GEN-LAST:event_jLabel1KeyTyped 271 | 272 | private void jPasswordField1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField1KeyTyped 273 | 274 | }//GEN-LAST:event_jPasswordField1KeyTyped 275 | 276 | private void jTextField2KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyTyped 277 | 278 | }//GEN-LAST:event_jTextField2KeyTyped 279 | 280 | private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed 281 | if (jCheckBox1.isSelected()) { 282 | jPasswordField1.setEchoChar((char) (0)); 283 | } else { 284 | jPasswordField1.setEchoChar('*'); 285 | 286 | } 287 | }//GEN-LAST:event_jCheckBox1ActionPerformed 288 | 289 | private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed 290 | int i = JOptionPane.showConfirmDialog(rootPane, "Are you sure you want to quit the login?"); 291 | if (i == JOptionPane.YES_OPTION) { 292 | dispose(); 293 | } 294 | 295 | }//GEN-LAST:event_jButton2ActionPerformed 296 | 297 | private void jLabel1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jLabel1KeyPressed 298 | 299 | }//GEN-LAST:event_jLabel1KeyPressed 300 | 301 | private void jTextField2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyPressed 302 | 303 | }//GEN-LAST:event_jTextField2KeyPressed 304 | 305 | private void jTextField2KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyReleased 306 | if (jTextField2.getText().length() > 0) { 307 | jLabel1.setVisible(false); 308 | } else { 309 | jLabel1.setVisible(true); 310 | } 311 | }//GEN-LAST:event_jTextField2KeyReleased 312 | 313 | private void jPasswordField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField1KeyReleased 314 | if (jPasswordField1.getText().length()>0) { 315 | jLabel8.setVisible(false); 316 | } else { 317 | jLabel8.setVisible(true); 318 | } 319 | 320 | }//GEN-LAST:event_jPasswordField1KeyReleased 321 | 322 | private void jButton1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MousePressed 323 | EntityManagerFactory emf = Persistence.createEntityManagerFactory("JavaApplication27PU"); 324 | EntityManager em = emf.createEntityManager(); 325 | em.getTransaction().begin(); 326 | Query query = em.createQuery("Select l.username from Login l"); 327 | List list = query.getResultList(); 328 | boolean q = false; 329 | for (String k : list) { 330 | if (k.equals(jTextField2.getText())) { 331 | q = true; 332 | 333 | } 334 | } 335 | if(q){ 336 | Login l2 = em.find(Login.class,jTextField2.getText()); 337 | if(l2.getPassword().equals(jPasswordField1.getText())){ 338 | JOptionPane.showMessageDialog(rootPane, "Successfully Logged in", "Info", 1); 339 | String timeStamp = new SimpleDateFormat("yyy-MM-dd HH:MM:ss").format(Calendar.getInstance().getTime()); 340 | try{ 341 | FileWriter fw = new FileWriter("LoginInfo.txt",true); 342 | fw.write("Normal User: " +jTextField2.getText() +"\t" + "Date:" +timeStamp +"\n" ); 343 | System.out.println("Successfull"); 344 | fw.close(); 345 | } 346 | catch(Exception e){ 347 | 348 | } 349 | 350 | new NewJFrame1("card3").setVisible(true); 351 | dispose(); 352 | } 353 | else{ 354 | JOptionPane.showMessageDialog(rootPane, "Enter a valid password", "Error in Password", 2); 355 | } 356 | } 357 | else{ 358 | JOptionPane.showMessageDialog(rootPane, "Enter a valid Username", "Error in Username", 2); 359 | } 360 | }//GEN-LAST:event_jButton1MousePressed 361 | 362 | /** 363 | * @param args the command line arguments 364 | */ 365 | public static void main(String args[]) { 366 | /* Set the Nimbus look and feel */ 367 | // 368 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 369 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 370 | */ 371 | try { 372 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 373 | if ("Nimbus".equals(info.getName())) { 374 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 375 | break; 376 | } 377 | } 378 | } catch (ClassNotFoundException ex) { 379 | java.util.logging.Logger.getLogger(NewJFrame4.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 380 | } catch (InstantiationException ex) { 381 | java.util.logging.Logger.getLogger(NewJFrame4.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 382 | } catch (IllegalAccessException ex) { 383 | java.util.logging.Logger.getLogger(NewJFrame4.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 384 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 385 | java.util.logging.Logger.getLogger(NewJFrame4.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 386 | } 387 | // 388 | 389 | /* Create and display the form */ 390 | java.awt.EventQueue.invokeLater(new Runnable() { 391 | public void run() { 392 | new NewJFrame4().setVisible(true); 393 | } 394 | }); 395 | } 396 | 397 | // Variables declaration - do not modify//GEN-BEGIN:variables 398 | private javax.swing.JButton jButton1; 399 | private javax.swing.JButton jButton2; 400 | private javax.swing.JCheckBox jCheckBox1; 401 | private javax.swing.JLabel jLabel1; 402 | private javax.swing.JLabel jLabel2; 403 | private javax.swing.JLabel jLabel3; 404 | private javax.swing.JLabel jLabel4; 405 | private javax.swing.JLabel jLabel6; 406 | private javax.swing.JLabel jLabel8; 407 | private javax.swing.JPanel jPanel1; 408 | private javax.swing.JPanel jPanel2; 409 | private javax.swing.JPanel jPanel3; 410 | private javax.swing.JPanel jPanel4; 411 | private javax.swing.JPasswordField jPasswordField1; 412 | private javax.swing.JTextField jTextField2; 413 | // End of variables declaration//GEN-END:variables 414 | } 415 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame4.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package javaapplication27.viewcontroller; 7 | 8 | import javaapplication27.entity.Login; 9 | import java.util.List; 10 | import javax.persistence.EntityManager; 11 | import javax.persistence.EntityManagerFactory; 12 | import javax.persistence.Persistence; 13 | import javax.persistence.Query; 14 | import javax.swing.JOptionPane; 15 | 16 | public class NewJFrame3 extends javax.swing.JFrame { 17 | 18 | /** 19 | * Creates new form NewJFrame3 20 | */ 21 | public NewJFrame3() { 22 | initComponents(); 23 | this.setLocationRelativeTo(null); 24 | 25 | } 26 | 27 | /** 28 | * This method is called from within the constructor to initialize the form. 29 | * WARNING: Do NOT modify this code. The content of this method is always 30 | * regenerated by the Form Editor. 31 | */ 32 | @SuppressWarnings("unchecked") 33 | // //GEN-BEGIN:initComponents 34 | private void initComponents() { 35 | 36 | jPanel1 = new javax.swing.JPanel(); 37 | jLabel1 = new javax.swing.JLabel(); 38 | jLabel2 = new javax.swing.JLabel(); 39 | jPanel3 = new javax.swing.JPanel(); 40 | jPanel2 = new javax.swing.JPanel(); 41 | jLabel5 = new javax.swing.JLabel(); 42 | jTextField1 = new javax.swing.JTextField(); 43 | jLabel3 = new javax.swing.JLabel(); 44 | jLabel4 = new javax.swing.JLabel(); 45 | jLabel6 = new javax.swing.JLabel(); 46 | jPanel4 = new javax.swing.JPanel(); 47 | jLabel8 = new javax.swing.JLabel(); 48 | jPasswordField1 = new javax.swing.JPasswordField(); 49 | jLabel7 = new javax.swing.JLabel(); 50 | jPanel5 = new javax.swing.JPanel(); 51 | jLabel9 = new javax.swing.JLabel(); 52 | jPasswordField2 = new javax.swing.JPasswordField(); 53 | jButton1 = new javax.swing.JButton(); 54 | jLabel10 = new javax.swing.JLabel(); 55 | jCheckBox1 = new javax.swing.JCheckBox(); 56 | jCheckBox2 = new javax.swing.JCheckBox(); 57 | jButton2 = new javax.swing.JButton(); 58 | 59 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 60 | setBackground(new java.awt.Color(0, 0, 0)); 61 | setUndecorated(true); 62 | 63 | jPanel1.setBackground(new java.awt.Color(51, 102, 255)); 64 | 65 | jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication27/assets/SignUpicon1.jpg"))); // NOI18N 66 | java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("javaapplication27/viewcontroller/Bundle"); // NOI18N 67 | jLabel1.setText(bundle.getString("NewJFrame3.jLabel1.text")); // NOI18N 68 | 69 | jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N 70 | jLabel2.setForeground(new java.awt.Color(255, 255, 255)); 71 | jLabel2.setText(bundle.getString("NewJFrame3.jLabel2.text")); // NOI18N 72 | 73 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); 74 | jPanel1.setLayout(jPanel1Layout); 75 | jPanel1Layout.setHorizontalGroup( 76 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 77 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE) 78 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() 79 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 80 | .addComponent(jLabel2) 81 | .addGap(39, 39, 39)) 82 | ); 83 | jPanel1Layout.setVerticalGroup( 84 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 85 | .addGroup(jPanel1Layout.createSequentialGroup() 86 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE) 87 | .addGap(42, 42, 42) 88 | .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) 89 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 90 | ); 91 | 92 | jPanel3.setBackground(new java.awt.Color(255, 255, 255)); 93 | jPanel3.addMouseListener(new java.awt.event.MouseAdapter() { 94 | public void mouseClicked(java.awt.event.MouseEvent evt) { 95 | jPanel3MouseClicked(evt); 96 | } 97 | public void mouseEntered(java.awt.event.MouseEvent evt) { 98 | jPanel3MouseEntered(evt); 99 | } 100 | }); 101 | 102 | jPanel2.setBackground(new java.awt.Color(255, 255, 255)); 103 | jPanel2.setLayout(null); 104 | 105 | jLabel5.setForeground(new java.awt.Color(102, 102, 102)); 106 | jLabel5.setText(bundle.getString("NewJFrame3.jLabel5.text")); // NOI18N 107 | jPanel2.add(jLabel5); 108 | jLabel5.setBounds(0, 0, 180, 40); 109 | 110 | jTextField1.addActionListener(new java.awt.event.ActionListener() { 111 | public void actionPerformed(java.awt.event.ActionEvent evt) { 112 | jTextField1ActionPerformed(evt); 113 | } 114 | }); 115 | jTextField1.addKeyListener(new java.awt.event.KeyAdapter() { 116 | public void keyPressed(java.awt.event.KeyEvent evt) { 117 | jTextField1KeyPressed(evt); 118 | } 119 | public void keyReleased(java.awt.event.KeyEvent evt) { 120 | jTextField1KeyReleased(evt); 121 | } 122 | public void keyTyped(java.awt.event.KeyEvent evt) { 123 | jTextField1KeyTyped(evt); 124 | } 125 | }); 126 | jPanel2.add(jTextField1); 127 | jTextField1.setBounds(0, 0, 180, 40); 128 | 129 | jLabel3.setText(bundle.getString("NewJFrame3.jLabel3.text")); // NOI18N 130 | 131 | jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N 132 | jLabel4.setText(bundle.getString("NewJFrame3.jLabel4.text")); // NOI18N 133 | 134 | jLabel6.setText(bundle.getString("NewJFrame3.jLabel6.text")); // NOI18N 135 | 136 | jPanel4.setBackground(new java.awt.Color(255, 255, 255)); 137 | jPanel4.setLayout(null); 138 | 139 | jLabel8.setForeground(new java.awt.Color(102, 102, 102)); 140 | jLabel8.setText(bundle.getString("NewJFrame3.jLabel8.text")); // NOI18N 141 | jPanel4.add(jLabel8); 142 | jLabel8.setBounds(0, 0, 190, 40); 143 | 144 | jPasswordField1.addKeyListener(new java.awt.event.KeyAdapter() { 145 | public void keyReleased(java.awt.event.KeyEvent evt) { 146 | jPasswordField1KeyReleased(evt); 147 | } 148 | public void keyTyped(java.awt.event.KeyEvent evt) { 149 | jPasswordField1KeyTyped(evt); 150 | } 151 | }); 152 | jPanel4.add(jPasswordField1); 153 | jPasswordField1.setBounds(0, 0, 180, 40); 154 | 155 | jLabel7.setText(bundle.getString("NewJFrame3.jLabel7.text")); // NOI18N 156 | 157 | jPanel5.setBackground(new java.awt.Color(255, 255, 255)); 158 | jPanel5.setLayout(null); 159 | 160 | jLabel9.setForeground(new java.awt.Color(102, 102, 102)); 161 | jLabel9.setText(bundle.getString("NewJFrame3.jLabel9.text")); // NOI18N 162 | jPanel5.add(jLabel9); 163 | jLabel9.setBounds(0, 0, 180, 40); 164 | 165 | jPasswordField2.addKeyListener(new java.awt.event.KeyAdapter() { 166 | public void keyReleased(java.awt.event.KeyEvent evt) { 167 | jPasswordField2KeyReleased(evt); 168 | } 169 | public void keyTyped(java.awt.event.KeyEvent evt) { 170 | jPasswordField2KeyTyped(evt); 171 | } 172 | }); 173 | jPanel5.add(jPasswordField2); 174 | jPasswordField2.setBounds(0, 0, 180, 40); 175 | 176 | jButton1.setBackground(new java.awt.Color(0, 0, 204)); 177 | jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N 178 | jButton1.setForeground(new java.awt.Color(255, 255, 255)); 179 | jButton1.setText(bundle.getString("NewJFrame3.jButton1.text")); // NOI18N 180 | jButton1.setToolTipText(bundle.getString("NewJFrame3.jButton1.toolTipText")); // NOI18N 181 | jButton1.addMouseListener(new java.awt.event.MouseAdapter() { 182 | public void mouseEntered(java.awt.event.MouseEvent evt) { 183 | jButton1MouseEntered(evt); 184 | } 185 | }); 186 | jButton1.addActionListener(new java.awt.event.ActionListener() { 187 | public void actionPerformed(java.awt.event.ActionEvent evt) { 188 | jButton1ActionPerformed(evt); 189 | } 190 | }); 191 | 192 | jLabel10.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N 193 | jLabel10.setForeground(new java.awt.Color(102, 102, 102)); 194 | jLabel10.setText(bundle.getString("NewJFrame3.jLabel10.text")); // NOI18N 195 | 196 | jCheckBox1.setText(bundle.getString("NewJFrame3.jCheckBox1.text")); // NOI18N 197 | jCheckBox1.addActionListener(new java.awt.event.ActionListener() { 198 | public void actionPerformed(java.awt.event.ActionEvent evt) { 199 | jCheckBox1ActionPerformed(evt); 200 | } 201 | }); 202 | 203 | jCheckBox2.setText(bundle.getString("NewJFrame3.jCheckBox2.text")); // NOI18N 204 | jCheckBox2.addActionListener(new java.awt.event.ActionListener() { 205 | public void actionPerformed(java.awt.event.ActionEvent evt) { 206 | jCheckBox2ActionPerformed(evt); 207 | } 208 | }); 209 | 210 | jButton2.setBackground(new java.awt.Color(0, 0, 204)); 211 | jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N 212 | jButton2.setForeground(new java.awt.Color(255, 255, 255)); 213 | jButton2.setText(bundle.getString("NewJFrame3.jButton2.text")); // NOI18N 214 | jButton2.setToolTipText(bundle.getString("NewJFrame3.jButton2.toolTipText")); // NOI18N 215 | jButton2.addActionListener(new java.awt.event.ActionListener() { 216 | public void actionPerformed(java.awt.event.ActionEvent evt) { 217 | jButton2ActionPerformed(evt); 218 | } 219 | }); 220 | 221 | javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); 222 | jPanel3.setLayout(jPanel3Layout); 223 | jPanel3Layout.setHorizontalGroup( 224 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 225 | .addGroup(jPanel3Layout.createSequentialGroup() 226 | .addGap(116, 116, 116) 227 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE) 228 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 94, Short.MAX_VALUE) 229 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) 230 | .addGroup(jPanel3Layout.createSequentialGroup() 231 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 232 | .addGroup(jPanel3Layout.createSequentialGroup() 233 | .addGap(23, 23, 23) 234 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 235 | .addComponent(jCheckBox1) 236 | .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE) 237 | .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) 238 | .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) 239 | .addComponent(jCheckBox2) 240 | .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE) 241 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) 242 | .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE) 243 | .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 244 | .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))) 245 | .addGroup(jPanel3Layout.createSequentialGroup() 246 | .addGap(149, 149, 149) 247 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE))) 248 | .addContainerGap(112, Short.MAX_VALUE)) 249 | ); 250 | jPanel3Layout.setVerticalGroup( 251 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 252 | .addGroup(jPanel3Layout.createSequentialGroup() 253 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 254 | .addGroup(jPanel3Layout.createSequentialGroup() 255 | .addGap(26, 26, 26) 256 | .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)) 257 | .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) 258 | .addGap(18, 18, 18) 259 | .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 260 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 261 | .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) 262 | .addGap(18, 18, 18) 263 | .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) 264 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 265 | .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) 266 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 267 | .addComponent(jCheckBox1) 268 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 269 | .addComponent(jLabel10) 270 | .addGap(18, 18, 18) 271 | .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) 272 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 273 | .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) 274 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 275 | .addComponent(jCheckBox2) 276 | .addGap(18, 18, 18) 277 | .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) 278 | .addContainerGap(80, Short.MAX_VALUE)) 279 | ); 280 | 281 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 282 | getContentPane().setLayout(layout); 283 | layout.setHorizontalGroup( 284 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 285 | .addGroup(layout.createSequentialGroup() 286 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 287 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 288 | .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 289 | ); 290 | layout.setVerticalGroup( 291 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 292 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 293 | .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 294 | ); 295 | 296 | pack(); 297 | }// //GEN-END:initComponents 298 | 299 | private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed 300 | 301 | }//GEN-LAST:event_jTextField1ActionPerformed 302 | 303 | private void jTextField1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyTyped 304 | 305 | 306 | }//GEN-LAST:event_jTextField1KeyTyped 307 | 308 | private void jPanel3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MouseClicked 309 | 310 | 311 | }//GEN-LAST:event_jPanel3MouseClicked 312 | 313 | private void jPasswordField1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField1KeyTyped 314 | 315 | }//GEN-LAST:event_jPasswordField1KeyTyped 316 | 317 | private void jPasswordField2KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField2KeyTyped 318 | 319 | }//GEN-LAST:event_jPasswordField2KeyTyped 320 | 321 | private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyPressed 322 | 323 | }//GEN-LAST:event_jTextField1KeyPressed 324 | 325 | private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed 326 | if (jCheckBox2.isSelected()) {//Providing the visibility of the password to user 327 | jPasswordField2.setEchoChar((char) 0); 328 | } else { 329 | jPasswordField2.setEchoChar('*'); 330 | } 331 | }//GEN-LAST:event_jCheckBox2ActionPerformed 332 | 333 | private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed 334 | if (jCheckBox1.isSelected()) {//Providing the visibility of the password to user 335 | jPasswordField1.setEchoChar((char) 0); 336 | } else { 337 | jPasswordField1.setEchoChar('*'); 338 | } 339 | }//GEN-LAST:event_jCheckBox1ActionPerformed 340 | 341 | private void jButton1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseEntered 342 | 343 | }//GEN-LAST:event_jButton1MouseEntered 344 | 345 | private void jPanel3MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MouseEntered 346 | 347 | }//GEN-LAST:event_jPanel3MouseEntered 348 | 349 | private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed 350 | 351 | int i = JOptionPane.showConfirmDialog(rootPane, "Are you sure you want to quit the Sign Up"); 352 | if (i == JOptionPane.YES_OPTION) { 353 | dispose(); 354 | } 355 | 356 | }//GEN-LAST:event_jButton2ActionPerformed 357 | 358 | private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyReleased 359 | jLabel5.setVisible(false);//Providing the option of displaying a placeholder to user 360 | if ((jTextField1.getText().length()) == 0) { 361 | jLabel5.setVisible(true); 362 | } 363 | 364 | }//GEN-LAST:event_jTextField1KeyReleased 365 | 366 | private void jPasswordField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField1KeyReleased 367 | jLabel8.setVisible(false);//Providing the option of displaying a placeholder to user 368 | if ((jPasswordField1.getText().length()) == 0) { 369 | jLabel8.setVisible(true); 370 | } 371 | 372 | }//GEN-LAST:event_jPasswordField1KeyReleased 373 | 374 | private void jPasswordField2KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordField2KeyReleased 375 | jLabel9.setVisible(false);//Providing the option of displaying a placeholder to user 376 | if ((jPasswordField2.getText().length()) == 0) { 377 | jLabel9.setVisible(true); 378 | } 379 | 380 | }//GEN-LAST:event_jPasswordField2KeyReleased 381 | 382 | private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed 383 | EntityManagerFactory emf = Persistence.createEntityManagerFactory("JavaApplication27PU"); 384 | EntityManager em = emf.createEntityManager(); 385 | em.getTransaction().begin(); 386 | Query query = em.createQuery("Select l.username from Login l"); 387 | List list = query.getResultList(); 388 | boolean t = false; 389 | 390 | 391 | for (String s : list) { 392 | if (s.equals(jTextField1.getText())) { 393 | t = true; 394 | } 395 | } 396 | 397 | 398 | if (t) { 399 | JOptionPane.showMessageDialog(rootPane, "Please try another username", "User name already exsists", 2); 400 | } 401 | if(jTextField1.getText().equals("")){ 402 | JOptionPane.showMessageDialog(rootPane, "Please enter a Username", "User name Required!", 2); 403 | } 404 | 405 | if (jPasswordField1.getText().length() < 8) { 406 | JOptionPane.showMessageDialog(rootPane, "Your password must be at least 8 characters!!", "Info", 2); 407 | } 408 | if (!jPasswordField2.getText().equals(jPasswordField1.getText())) { 409 | JOptionPane.showMessageDialog(rootPane, "Please enter the same password as you entered before", "Confirm your password!", 2); 410 | } 411 | else if (jPasswordField2.getText().equals(jPasswordField1.getText()) && jPasswordField1.getText().length() > 8 && !t && !(jTextField1.getText().equals("") )) { 412 | 413 | Login l = new Login(); 414 | l.setUsername(jTextField1.getText()); 415 | l.setPassword(jPasswordField1.getText()); 416 | em.persist(l); 417 | em.getTransaction().commit(); 418 | JOptionPane.showMessageDialog(rootPane, "New member added!", "Info", 1); 419 | 420 | } 421 | 422 | }//GEN-LAST:event_jButton1ActionPerformed 423 | 424 | /** 425 | * @param args the command line arguments 426 | */ 427 | public static void main(String args[]) { 428 | /* Set the Nimbus look and feel */ 429 | // 430 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. 431 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 432 | */ 433 | try { 434 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 435 | if ("Nimbus".equals(info.getName())) { 436 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 437 | break; 438 | } 439 | } 440 | } catch (ClassNotFoundException ex) { 441 | java.util.logging.Logger.getLogger(NewJFrame3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 442 | } catch (InstantiationException ex) { 443 | java.util.logging.Logger.getLogger(NewJFrame3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 444 | } catch (IllegalAccessException ex) { 445 | java.util.logging.Logger.getLogger(NewJFrame3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 446 | } catch (javax.swing.UnsupportedLookAndFeelException ex) { 447 | java.util.logging.Logger.getLogger(NewJFrame3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 448 | } 449 | // 450 | 451 | /* Create and display the form */ 452 | java.awt.EventQueue.invokeLater(new Runnable() { 453 | public void run() { 454 | new NewJFrame3().setVisible(true); 455 | } 456 | }); 457 | } 458 | 459 | // Variables declaration - do not modify//GEN-BEGIN:variables 460 | private javax.swing.JButton jButton1; 461 | private javax.swing.JButton jButton2; 462 | private javax.swing.JCheckBox jCheckBox1; 463 | private javax.swing.JCheckBox jCheckBox2; 464 | private javax.swing.JLabel jLabel1; 465 | private javax.swing.JLabel jLabel10; 466 | private javax.swing.JLabel jLabel2; 467 | private javax.swing.JLabel jLabel3; 468 | private javax.swing.JLabel jLabel4; 469 | private javax.swing.JLabel jLabel5; 470 | private javax.swing.JLabel jLabel6; 471 | private javax.swing.JLabel jLabel7; 472 | private javax.swing.JLabel jLabel8; 473 | private javax.swing.JLabel jLabel9; 474 | private javax.swing.JPanel jPanel1; 475 | private javax.swing.JPanel jPanel2; 476 | private javax.swing.JPanel jPanel3; 477 | private javax.swing.JPanel jPanel4; 478 | private javax.swing.JPanel jPanel5; 479 | private javax.swing.JPasswordField jPasswordField1; 480 | private javax.swing.JPasswordField jPasswordField2; 481 | private javax.swing.JTextField jTextField1; 482 | // End of variables declaration//GEN-END:variables 483 | } 484 | -------------------------------------------------------------------------------- /src/javaapplication27/viewcontroller/NewJFrame3.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | --------------------------------------------------------------------------------