├── .gitignore
├── .idea
├── .gitignore
├── libraries
│ ├── mysql_connector_java_8_0_28.xml
│ └── rs2xml.xml
├── misc.xml
├── modules.xml
└── uiDesigner.xml
├── Electiricity Billing System.iml
├── out
└── production
│ └── Electiricity Billing System
│ ├── electricity
│ └── billing
│ │ └── system
│ │ ├── Login.class
│ │ ├── Signup$1.class
│ │ ├── Signup$2.class
│ │ ├── Signup.class
│ │ ├── Splash.class
│ │ ├── bill_details.class
│ │ ├── calculate_bill$1.class
│ │ ├── calculate_bill.class
│ │ ├── customer_details.class
│ │ ├── database.class
│ │ ├── deposit_details.class
│ │ ├── generate_bill.class
│ │ ├── main_class.class
│ │ ├── meterInfo.class
│ │ ├── newCustomer.class
│ │ ├── pay_bill$1.class
│ │ ├── pay_bill.class
│ │ ├── payment_bill.class
│ │ ├── update_information.class
│ │ └── view_information.class
│ └── icon
│ ├── Splash.jpg
│ ├── bill.png
│ ├── boy.png
│ ├── budget.png
│ ├── calculator.png
│ ├── calculatorbills.png
│ ├── cancel.png
│ ├── customerDetails.png
│ ├── depositdetails.png
│ ├── detail.png
│ ├── details.png
│ ├── ebs.png
│ ├── exit.png
│ ├── information.png
│ ├── login.png
│ ├── newcustomer.png
│ ├── notepad.png
│ ├── pay.png
│ ├── profile.png
│ ├── refresh.png
│ ├── sign-up.png
│ ├── slash.png
│ ├── splash
│ └── Splash.jpg
│ ├── update.png
│ └── viewInfo.png
└── src
├── electricity
└── billing
│ └── system
│ ├── Login.java
│ ├── Signup.java
│ ├── Splash.java
│ ├── bill_details.java
│ ├── calculate_bill.java
│ ├── customer_details.java
│ ├── database.java
│ ├── deposit_details.java
│ ├── generate_bill.java
│ ├── main_class.java
│ ├── meterInfo.java
│ ├── newCustomer.java
│ ├── pay_bill.java
│ ├── payment_bill.java
│ ├── update_information.java
│ └── view_information.java
└── icon
├── Splash.jpg
├── bill.png
├── boy.png
├── budget.png
├── calculator.png
├── calculatorbills.png
├── cancel.png
├── customerDetails.png
├── depositdetails.png
├── detail.png
├── details.png
├── ebs.png
├── exit.png
├── information.png
├── login.png
├── newcustomer.png
├── notepad.png
├── pay.png
├── profile.png
├── refresh.png
├── sign-up.png
├── slash.png
├── splash
└── Splash.jpg
├── update.png
└── viewInfo.png
/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/.gitignore
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/libraries/mysql_connector_java_8_0_28.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/libraries/rs2xml.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/uiDesigner.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Electiricity Billing System.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/Login.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/Login.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/Signup$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/Signup$1.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/Signup$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/Signup$2.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/Signup.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/Signup.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/Splash.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/Splash.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/bill_details.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/bill_details.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/calculate_bill$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/calculate_bill$1.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/calculate_bill.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/calculate_bill.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/customer_details.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/customer_details.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/database.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/database.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/deposit_details.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/deposit_details.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/generate_bill.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/generate_bill.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/main_class.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/main_class.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/meterInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/meterInfo.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/newCustomer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/newCustomer.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/pay_bill$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/pay_bill$1.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/pay_bill.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/pay_bill.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/payment_bill.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/payment_bill.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/update_information.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/update_information.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/electricity/billing/system/view_information.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/electricity/billing/system/view_information.class
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/Splash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/Splash.jpg
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/bill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/bill.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/boy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/boy.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/budget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/budget.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/calculator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/calculator.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/calculatorbills.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/calculatorbills.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/cancel.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/customerDetails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/customerDetails.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/depositdetails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/depositdetails.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/detail.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/details.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/details.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/ebs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/ebs.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/exit.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/information.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/login.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/newcustomer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/newcustomer.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/notepad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/notepad.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/pay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/pay.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/profile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/profile.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/refresh.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/sign-up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/sign-up.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/slash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/slash.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/splash/Splash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/splash/Splash.jpg
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/update.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/update.png
--------------------------------------------------------------------------------
/out/production/Electiricity Billing System/icon/viewInfo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/out/production/Electiricity Billing System/icon/viewInfo.png
--------------------------------------------------------------------------------
/src/electricity/billing/system/Login.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.sql.ResultSet;
8 |
9 | public class Login extends JFrame implements ActionListener {
10 | JTextField userText,passwordText;
11 | Choice loginChoice;
12 |
13 | JButton loginButton,cancelButton,signupButton;
14 |
15 | Login(){
16 | super("Login");
17 | getContentPane().setBackground(Color.white);
18 | JLabel username = new JLabel("UserName");
19 | username.setBounds(300,60,100,20);
20 | add(username);
21 |
22 | userText = new JTextField();
23 | userText.setBounds(400,60,150,20);
24 | add(userText);
25 |
26 | JLabel password = new JLabel("Password");
27 | password.setBounds(300,100,100,20);
28 | add(password);
29 |
30 | passwordText = new JTextField();
31 | passwordText.setBounds(400,100,150,20);
32 | add(passwordText);
33 |
34 | JLabel loggin = new JLabel("Loggin In As");
35 | loggin.setBounds(300,140,100,20);
36 | add(loggin);
37 |
38 | loginChoice = new Choice();
39 | loginChoice.add("Admin");
40 | loginChoice.add("Customer");
41 | loginChoice.setBounds(400,140,150,20);
42 | add(loginChoice);
43 |
44 | loginButton = new JButton("Login");
45 | loginButton.setBounds(330,180,100,20);
46 | loginButton.addActionListener(this);
47 | add(loginButton);
48 |
49 | cancelButton = new JButton("Cancel");
50 | cancelButton.setBounds(460,180,100,20);
51 | cancelButton.addActionListener(this);
52 | add(cancelButton);
53 |
54 | signupButton = new JButton("Signup");
55 | signupButton.setBounds(400,215,100,20);
56 | signupButton.addActionListener(this);
57 | add(signupButton);
58 |
59 | ImageIcon profileOne = new ImageIcon(ClassLoader.getSystemResource("icon/profile.png"));
60 | Image profileTow = profileOne.getImage().getScaledInstance(250,250,Image.SCALE_DEFAULT);
61 | ImageIcon fprofileOne = new ImageIcon(profileTow);
62 | JLabel profileLable = new JLabel(fprofileOne);
63 | profileLable.setBounds(5,5,250,250);
64 | add(profileLable);
65 |
66 |
67 |
68 | setSize(640,300);
69 | setLocation(400,200);
70 | setLayout(null);
71 | setVisible(true);
72 | }
73 |
74 | @Override
75 | public void actionPerformed(ActionEvent e) {
76 | if (e.getSource()==loginButton){
77 | String susername = userText.getText();
78 | String spassword = passwordText.getText();
79 | String suser = loginChoice.getSelectedItem();
80 |
81 | try{
82 | database d = new database();
83 | String queryy = "select * from Signup where username = '"+susername+"' and password = '"+spassword+"' and usertype ='"+suser+"'";
84 | ResultSet resultSet = d.statement.executeQuery(queryy);
85 |
86 | if (resultSet.next()){
87 | String meter = resultSet.getString("meter_no");
88 | setVisible(false);
89 | new main_class(suser,meter);
90 | }else {
91 | JOptionPane.showMessageDialog(null ,"Invalid Login");
92 | }
93 |
94 | }catch (Exception E){
95 | E.printStackTrace();
96 | }
97 | } else if (e.getSource()==cancelButton) {
98 | setVisible(false);
99 | } else if (e.getSource()==signupButton) {
100 | setVisible(false);
101 | new Signup();
102 | }
103 |
104 | }
105 |
106 | public static void main(String[] args) {
107 | new Login();
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/Signup.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.*;
6 | import java.sql.ResultSet;
7 |
8 | public class Signup extends JFrame implements ActionListener {
9 | Choice loginASCho;
10 | TextField meterText,EmployerText,userNameText,nameText,passwordText;
11 | JButton create,back;
12 | Signup(){
13 | super("Signup Page");
14 | getContentPane().setBackground(new Color(168,203,255));
15 |
16 | JLabel createAs = new JLabel("Create Account As");
17 | createAs.setBounds(30,50,125,20);
18 | add(createAs);
19 |
20 | loginASCho = new Choice();
21 | loginASCho.add("Admin");
22 | loginASCho.add("Customer");
23 | loginASCho.setBounds(170,50,120,20);
24 | add(loginASCho);
25 |
26 | JLabel meterNo = new JLabel("Meter Number");
27 | meterNo.setBounds(30,100,125,20);
28 | meterNo.setVisible(false);
29 | add(meterNo);
30 |
31 | meterText = new TextField();
32 | meterText.setBounds(170,100,125,20);
33 | meterText.setVisible(false);
34 | add(meterText);
35 |
36 | JLabel Employer = new JLabel("Employer ID");
37 | Employer.setBounds(30,100,125,20);
38 | Employer.setVisible(true);
39 | add(Employer);
40 |
41 | EmployerText = new TextField();
42 | EmployerText.setBounds(170,100,125,20);
43 | EmployerText.setVisible(true);
44 | add(EmployerText);
45 |
46 | JLabel userName = new JLabel("UserName");
47 | userName.setBounds(30,140,125,20);
48 | add(userName);
49 |
50 | userNameText = new TextField();
51 | userNameText.setBounds(170,140,125,20);
52 | add(userNameText);
53 |
54 |
55 | JLabel name = new JLabel("Name");
56 | name.setBounds(30,180,125,20);
57 | add(name);
58 |
59 | nameText = new TextField("");
60 | nameText.setBounds(170,180,125,20);
61 | add(nameText);
62 |
63 | meterText.addFocusListener(new FocusListener() {
64 | @Override
65 | public void focusGained(FocusEvent e) {
66 |
67 | }
68 |
69 | @Override
70 | public void focusLost(FocusEvent e) {
71 | try{
72 | database c = new database();
73 | ResultSet resultSet = c.statement.executeQuery("select * from Signup where meter_no = '"+meterText.getText()+"'");
74 | if (resultSet.next()){
75 | nameText.setText(resultSet.getString("name"));
76 | }
77 |
78 | }catch (Exception E){
79 | E.printStackTrace();
80 | }
81 | }
82 | });
83 |
84 | JLabel password = new JLabel("Password");
85 | password.setBounds(30,220,125,20);
86 | add(password);
87 |
88 | passwordText = new TextField();
89 | passwordText.setBounds(170,220,125,20);
90 | add(passwordText);
91 |
92 |
93 | loginASCho.addItemListener(new ItemListener() {
94 | @Override
95 | public void itemStateChanged(ItemEvent e) {
96 | String user = loginASCho.getSelectedItem();
97 | if (user.equals("Customer")){
98 | Employer.setVisible(false);
99 | nameText.setEditable(false);
100 | EmployerText.setVisible(false);
101 | meterNo.setVisible(true);
102 | meterText.setVisible(true);
103 | }else {
104 | Employer.setVisible(true);
105 | EmployerText.setVisible(true);
106 | meterNo.setVisible(false);
107 | meterText.setVisible(false);
108 | }
109 |
110 | }
111 | });
112 |
113 | create = new JButton("Create");
114 | create.setBackground(new Color(66,127,219));
115 | create.setForeground(Color.black);
116 | create.setBounds(50,285,100,25);
117 | create.addActionListener(this);
118 | add(create);
119 |
120 | back = new JButton("Back");
121 | back.setBackground(new Color(66,127,219));
122 | back.setForeground(Color.black);
123 | back.setBounds(180,285,100,25);
124 | back.addActionListener(this);
125 | add(back);
126 |
127 | ImageIcon boyIcon = new ImageIcon(ClassLoader.getSystemResource("icon/boy.png"));
128 | Image boyImg = boyIcon.getImage().getScaledInstance(250,250,Image.SCALE_DEFAULT);
129 | ImageIcon boyIcon2 = new ImageIcon(boyImg);
130 | JLabel boyLabel = new JLabel(boyIcon2);
131 | boyLabel.setBounds(320,30,250,250);
132 | add(boyLabel);
133 |
134 |
135 | setSize(600,380);
136 | setLocation(500,200);
137 | setLayout(null);
138 | setVisible(true);
139 | }
140 | @Override
141 | public void actionPerformed(ActionEvent e) {
142 | if (e.getSource()== create){
143 | String sloginAs = loginASCho.getSelectedItem();
144 | String susername = userNameText.getText();
145 | String sname = nameText.getText();
146 | String spassword = passwordText.getText();
147 | String smeter = meterText.getText();
148 | try{
149 | database c = new database();
150 | String query= null;
151 | if (loginASCho.equals("Admin")) {
152 | query = "insert into Signup value('" + smeter + "', '" + susername + "', '" + sname + "','" + spassword + "','" + sloginAs + "')";
153 | }else {
154 | query = "update Signup set username = '"+susername+"', password = '"+spassword+"', usertype = '"+sloginAs+"' where meter_no = '"+smeter+"'";
155 | }
156 | c.statement.executeUpdate(query);
157 |
158 | JOptionPane.showMessageDialog(null,"Account Created");
159 | setVisible(false);
160 | new Login();
161 |
162 | }catch (Exception E){
163 | E.printStackTrace();
164 | }
165 | } else if (e.getSource()==back) {
166 | setVisible(false);
167 | new Login();
168 | }
169 | }
170 |
171 | public static void main(String[] args) {
172 | new Signup();
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/Splash.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 |
6 | public class Splash extends JFrame {
7 | Splash(){
8 |
9 | ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/splash/Splash.jpg"));
10 | Image imageOne = imageIcon.getImage().getScaledInstance(600,400,Image.SCALE_DEFAULT);
11 | ImageIcon imageIcon2 = new ImageIcon( imageOne);
12 | JLabel imageLabel = new JLabel(imageIcon2);
13 | add(imageLabel);
14 |
15 | setSize(600,400);
16 | setLocation(500,200);
17 | setVisible(true);
18 |
19 | try {
20 | Thread.sleep(3000);
21 | setVisible(false);
22 |
23 | new Login();
24 | }catch (Exception e){
25 | e.printStackTrace();
26 | }
27 |
28 |
29 | }
30 | public static void main(String[] args) {
31 | new Splash();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/bill_details.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import net.proteanit.sql.DbUtils;
4 |
5 | import javax.swing.*;
6 | import java.awt.*;
7 | import java.sql.ResultSet;
8 |
9 | public class bill_details extends JFrame {
10 | String meter;
11 | bill_details(String meter){
12 | this.meter =meter;
13 | setSize(700,650);
14 | setLocation(400,150);
15 | setLayout(null);
16 | getContentPane().setBackground(Color.WHITE);
17 |
18 | JTable table = new JTable();
19 |
20 | try{
21 | database c = new database();
22 | String query_bill = "select * from bill where meter_no = '"+meter+"'";
23 | ResultSet resultSet = c.statement.executeQuery(query_bill);
24 | table.setModel(DbUtils.resultSetToTableModel(resultSet));
25 | }catch (Exception e){
26 | e.printStackTrace();
27 | }
28 | JScrollPane sp = new JScrollPane(table);
29 | sp.setBounds(0,0,700,650);
30 | add(sp);
31 |
32 | setVisible(true);
33 | }
34 | public static void main(String[] args) {
35 | new bill_details("");
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/calculate_bill.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.awt.event.ItemEvent;
8 | import java.awt.event.ItemListener;
9 | import java.sql.ResultSet;
10 |
11 | public class calculate_bill extends JFrame implements ActionListener{
12 | JLabel nameText, addressText;
13 | TextField unitText;
14 | Choice meternumCho,monthCho;
15 | JButton submit, cancel;
16 | calculate_bill(){
17 |
18 | JPanel panel = new JPanel();
19 | panel.setLayout(null);
20 | panel.setBackground(new Color(214,195,247));
21 | add(panel);
22 |
23 | JLabel heading = new JLabel("Calculate Electricity Bill");
24 | heading.setBounds(70,10,300,20);
25 | heading.setFont(new Font("Tahoma",Font.BOLD,20));
26 | panel.add(heading);
27 |
28 | JLabel meternum = new JLabel("Meter Number");
29 | meternum.setBounds(50,80,100,20);
30 | panel.add(meternum);
31 |
32 | meternumCho = new Choice();
33 | try {
34 | database c = new database();
35 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer");
36 | while (resultSet.next()){
37 | meternumCho.add(resultSet.getString("meter_no"));
38 | }
39 | }catch (Exception E){
40 | E.printStackTrace();
41 | }
42 | meternumCho.setBounds(180,80,100,20);
43 | panel.add(meternumCho);
44 |
45 | JLabel name = new JLabel("Name");
46 | name.setBounds(50,120,100,20);
47 | panel.add(name);
48 |
49 | nameText = new JLabel("");
50 | nameText.setBounds(180,120,150,20);
51 | panel.add(nameText);
52 |
53 | JLabel address = new JLabel("Address");
54 | address.setBounds(50,160,100,20);
55 | panel.add(address);
56 |
57 | addressText = new JLabel("");
58 | addressText.setBounds(180,160,150,20);
59 | panel.add(addressText);
60 |
61 | try {
62 | database c= new database();
63 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no = '"+meternumCho.getSelectedItem()+"' ");
64 | while (resultSet.next()){
65 | nameText.setText(resultSet.getString("name"));
66 | addressText.setText(resultSet.getString("address"));
67 | }
68 | }catch (Exception E){
69 | E.printStackTrace();
70 | }
71 | meternumCho.addItemListener(new ItemListener() {
72 | @Override
73 | public void itemStateChanged(ItemEvent e) {
74 | try {
75 | database c= new database();
76 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no = '"+meternumCho.getSelectedItem()+"' ");
77 | while (resultSet.next()){
78 | nameText.setText(resultSet.getString("name"));
79 | addressText.setText(resultSet.getString("address"));
80 | }
81 | }catch (Exception E){
82 | E.printStackTrace();
83 | }
84 | }
85 | });
86 |
87 | JLabel unitconsumed = new JLabel("Unit Consumed");
88 | unitconsumed.setBounds(50,200,100,20);
89 | panel.add(unitconsumed);
90 |
91 | unitText = new TextField();
92 | unitText.setBounds(180,200,150,20);
93 | panel.add(unitText);
94 |
95 | JLabel month = new JLabel("Month");
96 | month.setBounds(50,240,100,20);
97 | panel.add(month);
98 |
99 | monthCho = new Choice();
100 | monthCho.add("January");
101 | monthCho.add("February");
102 | monthCho.add("March");
103 | monthCho.add("April");
104 | monthCho.add("May");
105 | monthCho.add("June");
106 | monthCho.add("July");
107 | monthCho.add("August");
108 | monthCho.add("September");
109 | monthCho.add("October");
110 | monthCho.add("November");
111 | monthCho.add("December");
112 | monthCho.setBounds(180,240,150,20);
113 | panel.add(monthCho);
114 |
115 |
116 | submit = new JButton("Submit");
117 | submit.setBounds(80,300,100,25);
118 | submit.setBackground(Color.black);
119 | submit.setForeground(Color.white);
120 | submit.addActionListener(this);
121 | panel.add(submit);
122 |
123 | cancel = new JButton("Cancel");
124 | cancel.setBounds(220,300,100,25);
125 | cancel.setBackground(Color.black);
126 | cancel.setForeground(Color.white);
127 | cancel.addActionListener(this);
128 | panel.add(cancel);
129 |
130 | setLayout(new BorderLayout());
131 | add(panel,"Center");
132 | ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/budget.png"));
133 | Image image = imageIcon.getImage().getScaledInstance(250,200,Image.SCALE_DEFAULT);
134 | ImageIcon imageIcon1 = new ImageIcon(image);
135 | JLabel imageLabel = new JLabel(imageIcon1);
136 | add(imageLabel,"East");
137 |
138 | setSize(650,400);
139 | setLocation(400,200);
140 | setVisible(true);
141 | }
142 |
143 | @Override
144 | public void actionPerformed(ActionEvent e) {
145 | if (e.getSource() == submit){
146 | String smeterNo = meternumCho.getSelectedItem();
147 | String sunit = unitText.getText();
148 | String smonth = monthCho.getSelectedItem();
149 |
150 | int totalBill =0;
151 | int units=Integer.parseInt(sunit);
152 | String query_tax = "select * from tax";
153 | try{
154 | database c = new database();
155 | ResultSet resultSet = c.statement.executeQuery(query_tax);
156 | while (resultSet.next()){
157 | totalBill += units * Integer.parseInt(resultSet.getString("cost_per_unit"));
158 | totalBill += Integer.parseInt(resultSet.getString("meter_rent"));
159 | totalBill += Integer.parseInt(resultSet.getString("service_charge"));
160 | totalBill += Integer.parseInt(resultSet.getString("swacch_bharat"));
161 | totalBill += Integer.parseInt(resultSet.getString("fixed_tax"));
162 |
163 | }
164 | }catch (Exception E){
165 | E.printStackTrace();
166 | }
167 | String query_total_bill = "insert into bill values('"+smeterNo+"', '"+smonth+"','"+sunit+"', '"+totalBill+"','Not Paid')";
168 | try{
169 | database c = new database();
170 | c.statement.executeUpdate(query_total_bill);
171 |
172 | JOptionPane.showMessageDialog(null,"Customer Bill Updated Successfully");
173 | setVisible(false);
174 | }catch (Exception E){
175 | E.printStackTrace();
176 | }
177 |
178 | }else {
179 | setVisible(false);
180 | }
181 | }
182 | public static void main(String[] args) {
183 | new calculate_bill();
184 | }
185 |
186 | }
187 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/customer_details.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import net.proteanit.sql.DbUtils;
4 |
5 | import javax.naming.ldap.ExtendedRequest;
6 | import javax.swing.*;
7 | import java.awt.*;
8 | import java.awt.event.ActionEvent;
9 | import java.awt.event.ActionListener;
10 | import java.awt.print.PrinterException;
11 | import java.sql.ResultSet;
12 |
13 | public class customer_details extends JFrame implements ActionListener {
14 | Choice searchMeterCho,searchNameCho;
15 | JTable table;
16 | JButton search,print,close;
17 | customer_details(){
18 | super("Customer Details");
19 | getContentPane().setBackground(new Color(192,186,254));
20 | setSize(700,500);
21 | setLocation(400,200);
22 | setLayout(null);
23 |
24 | JLabel searchMeter = new JLabel("Search By Meter Number");
25 | searchMeter.setBounds(20,20,150,20);
26 | add(searchMeter);
27 |
28 | searchMeterCho = new Choice();
29 | searchMeterCho.setBounds(180,20,150,20);
30 | add(searchMeterCho);
31 |
32 | try{
33 | database c= new database();
34 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer");
35 | while (resultSet.next()){
36 | searchMeterCho.add(resultSet.getString("meter_no"));
37 | }
38 | }catch (Exception e){
39 | e.printStackTrace();
40 | }
41 |
42 | JLabel searchName = new JLabel("Search By Name");
43 | searchName.setBounds(400,20,100,20);
44 | add(searchName);
45 |
46 | searchNameCho = new Choice();
47 | searchNameCho.setBounds(520,20,150,20);
48 | add(searchNameCho);
49 |
50 | try{
51 | database c= new database();
52 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer");
53 | while (resultSet.next()){
54 | searchNameCho.add(resultSet.getString("name"));
55 | }
56 | }catch (Exception e){
57 | e.printStackTrace();
58 | }
59 |
60 | table = new JTable();
61 | try{
62 | database c =new database();
63 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer");
64 | table.setModel(DbUtils.resultSetToTableModel(resultSet));
65 | }catch (Exception e){
66 | e.printStackTrace();
67 | }
68 |
69 | JScrollPane scrollPane = new JScrollPane(table);
70 | scrollPane.setBounds(0,100,700,500);
71 | scrollPane.setBackground(Color.white);
72 | add(scrollPane);
73 |
74 |
75 | search = new JButton("Search");
76 | search.setBackground(Color.white);
77 | search.setBounds(20,70,80,20);
78 | search.addActionListener(this);
79 | add(search);
80 |
81 | print = new JButton("Print");
82 | print.setBackground(Color.white);
83 | print.setBounds(120,70,80,20);
84 | print.addActionListener(this);
85 | add(print);
86 |
87 | close = new JButton("Close");
88 | close.setBackground(Color.white);
89 | close.setBounds(600,70,80,20);
90 | close.addActionListener(this);
91 | add(close);
92 |
93 | setVisible(true);
94 | }
95 |
96 | @Override
97 | public void actionPerformed(ActionEvent e) {
98 | if (e.getSource()==search){
99 | String query_search = "select * from new_customer where meter_no = '"+searchMeterCho.getSelectedItem()+"' and name = '"+searchNameCho.getSelectedItem()+"'" ;
100 | try{
101 | database c = new database();
102 | ResultSet resultSet = c.statement.executeQuery(query_search);
103 | table.setModel(DbUtils.resultSetToTableModel(resultSet));
104 | }catch (Exception E){
105 | E.printStackTrace();
106 | }
107 | } else if (e.getSource()==print)
108 | {
109 | try {
110 | table.print();
111 | } catch (Exception E) {
112 | E.printStackTrace();
113 | }
114 |
115 | }else {
116 | setVisible(false);
117 | }
118 | }
119 |
120 | public static void main(String[] args) {
121 | new customer_details();
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/database.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import java.sql.*;
4 |
5 | public class database {
6 | Connection connection;
7 | Statement statement;
8 | database(){
9 | try {
10 | connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/Bill_system","root","AyushVish");
11 | statement = connection.createStatement();
12 | }catch (Exception e){
13 | e.printStackTrace();
14 | }
15 | }
16 | }
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/deposit_details.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import net.proteanit.sql.DbUtils;
4 |
5 | import javax.swing.*;
6 | import java.awt.*;
7 | import java.awt.event.ActionEvent;
8 | import java.awt.event.ActionListener;
9 | import java.sql.ResultSet;
10 |
11 | public class deposit_details extends JFrame implements ActionListener {
12 | Choice searchMeterCho,searchMonthCho;
13 | JTable table;
14 | JButton search,print,close;
15 | deposit_details(){
16 | super("Deposit Details");
17 | getContentPane().setBackground(new Color(192,186,254));
18 | setSize(700,500);
19 | setLocation(400,200);
20 | setLayout(null);
21 |
22 | JLabel searchMeter = new JLabel("Search By Meter Number");
23 | searchMeter.setBounds(20,20,150,20);
24 | add(searchMeter);
25 |
26 | searchMeterCho = new Choice();
27 | searchMeterCho.setBounds(180,20,150,20);
28 | add(searchMeterCho);
29 |
30 | try{
31 | database c= new database();
32 | ResultSet resultSet = c.statement.executeQuery("select * from bill");
33 | while (resultSet.next()){
34 | searchMeterCho.add(resultSet.getString("meter_no"));
35 | }
36 | }catch (Exception e){
37 | e.printStackTrace();
38 | }
39 |
40 | JLabel searchMonth = new JLabel("Search By Name");
41 | searchMonth.setBounds(400,20,100,20);
42 | add(searchMonth);
43 |
44 | searchMonthCho = new Choice();
45 | searchMonthCho.add("January");
46 | searchMonthCho.add("February");
47 | searchMonthCho.add("March");
48 | searchMonthCho.add("April");
49 | searchMonthCho.add("May");
50 | searchMonthCho.add("June");
51 | searchMonthCho.add("July");
52 | searchMonthCho.add("August");
53 | searchMonthCho.add("September");
54 | searchMonthCho.add("October");
55 | searchMonthCho.add("November");
56 | searchMonthCho.add("December");
57 | searchMonthCho.setBounds(520,20,150,20);
58 | add(searchMonthCho);
59 |
60 |
61 |
62 | table = new JTable();
63 | try{
64 | database c =new database();
65 | ResultSet resultSet = c.statement.executeQuery("select * from bill");
66 | table.setModel(DbUtils.resultSetToTableModel(resultSet));
67 | }catch (Exception e){
68 | e.printStackTrace();
69 | }
70 |
71 | JScrollPane scrollPane = new JScrollPane(table);
72 | scrollPane.setBounds(0,100,700,500);
73 | scrollPane.setBackground(Color.white);
74 | add(scrollPane);
75 |
76 |
77 | search = new JButton("Search");
78 | search.setBackground(Color.white);
79 | search.setBounds(20,70,80,20);
80 | search.addActionListener(this);
81 | add(search);
82 |
83 | print = new JButton("Print");
84 | print.setBackground(Color.white);
85 | print.setBounds(120,70,80,20);
86 | print.addActionListener(this);
87 | add(print);
88 |
89 | close = new JButton("Close");
90 | close.setBackground(Color.white);
91 | close.setBounds(600,70,80,20);
92 | close.addActionListener(this);
93 | add(close);
94 |
95 | setVisible(true);
96 | }
97 |
98 | @Override
99 | public void actionPerformed(ActionEvent e) {
100 | if (e.getSource()==search){
101 | String query_search = "select * from bill where meter_no = '"+searchMeterCho.getSelectedItem()+"' and month = '"+searchMonthCho.getSelectedItem()+"'" ;
102 | try{
103 | database c = new database();
104 | ResultSet resultSet = c.statement.executeQuery(query_search);
105 | table.setModel(DbUtils.resultSetToTableModel(resultSet));
106 | }catch (Exception E){
107 | E.printStackTrace();
108 | }
109 | } else if (e.getSource()==print)
110 | {
111 | try {
112 | table.print();
113 | } catch (Exception E) {
114 | E.printStackTrace();
115 | }
116 |
117 | }else {
118 | setVisible(false);
119 | }
120 | }
121 |
122 | public static void main(String[] args) {
123 | new deposit_details();
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/generate_bill.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.sql.ResultSet;
8 |
9 | public class generate_bill extends JFrame implements ActionListener {
10 | Choice searchmonthcho;
11 | String meter;
12 | JTextArea area;
13 | JButton bill;
14 | generate_bill(String meter){
15 | this.meter=meter;
16 | setSize(500,700);
17 | setLocation(500,30);
18 | setLayout( new BorderLayout());
19 | JPanel panel = new JPanel();
20 |
21 | JLabel heading = new JLabel("Generate Bill");
22 |
23 | JLabel meter_no = new JLabel(meter);
24 |
25 | searchmonthcho = new Choice();
26 | searchmonthcho.add("January");
27 | searchmonthcho.add("February");
28 | searchmonthcho.add("March");
29 | searchmonthcho.add("April");
30 | searchmonthcho.add("May");
31 | searchmonthcho.add("June");
32 | searchmonthcho.add("July");
33 | searchmonthcho.add("August");
34 | searchmonthcho.add("September");
35 | searchmonthcho.add("October");
36 | searchmonthcho.add("November");
37 | searchmonthcho.add("December");
38 |
39 | area= new JTextArea(50,15);
40 | area.setText("\n \n \t ------------------- Click on the ---------------\n \t ------------------- Generate Bill");
41 | area.setFont(new Font("Senserif",Font.ITALIC,15));
42 | JScrollPane pane = new JScrollPane(area);
43 | bill = new JButton("Generate Bill");
44 | bill.addActionListener(this);
45 |
46 | add(pane);
47 |
48 | panel.add(heading);
49 | panel.add(meter_no);
50 | panel.add(searchmonthcho);
51 | add(panel,"North");
52 | add(bill,"South");
53 |
54 | setVisible(true);
55 |
56 |
57 | }
58 |
59 | @Override
60 | public void actionPerformed(ActionEvent e) {
61 |
62 | try{
63 | database c = new database();
64 | String smonth = searchmonthcho.getSelectedItem();
65 | area.setText("\n Power Limited \n Electricity Bill For Month of "+smonth+",2023\n\n\n");
66 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no ='"+meter+"'");
67 | if (resultSet.next()){
68 | area.append("\n Customer Name : "+resultSet.getString("name"));
69 | area.append("\n Customer Meter Number: "+resultSet.getString("meter_no"));
70 | area.append("\n Customer Address : "+resultSet.getString("address"));
71 | area.append("\n Customer City : "+resultSet.getString("city"));
72 | area.append("\n Customer State : "+resultSet.getString("state"));
73 | area.append("\n Customer Email : "+resultSet.getString("email"));
74 | area.append("\n Customer Phone Number : "+resultSet.getString("phone_no"));
75 |
76 | }
77 |
78 | resultSet = c.statement.executeQuery("select * from meter_info where meter_number ='"+meter+"'");
79 | if (resultSet.next()){
80 | area.append("\n Customer Meter Location : "+resultSet.getString("meter_location"));
81 | area.append("\n Customer Meter Type: "+resultSet.getString("meter_type"));
82 | area.append("\n Customer Phase Code : "+resultSet.getString("phase_code"));
83 | area.append("\n Customer Bill Type : "+resultSet.getString("bill_type"));
84 | area.append("\n Customer Days : "+resultSet.getString("Days"));
85 |
86 |
87 | }
88 | resultSet = c.statement.executeQuery("select * from tax");
89 | if (resultSet.next()){
90 | area.append("\n Cost Per Unit : "+resultSet.getString("cost_per_unit"));
91 | area.append("\n Meter Rent: "+resultSet.getString("meter_rent"));
92 | area.append("\n Service Charge : "+resultSet.getString("service_charge"));
93 | area.append("\n Service Tax : "+resultSet.getString("service_tax"));
94 | area.append("\n Swacch Bharat : "+resultSet.getString("swacch_bharat"));
95 | area.append("\n Fixed Tax : "+resultSet.getString("fixed_tax"));
96 |
97 | }
98 | resultSet = c.statement.executeQuery("select * from bill where meter_no = '"+meter+"' and month = '"+searchmonthcho.getSelectedItem()+"'");
99 | if (resultSet.next()) {
100 | area.append("\n Current Month : " + resultSet.getString("month"));
101 | area.append("\n Units Consumed: " + resultSet.getString("unit"));
102 | area.append("\n Total Charges : " + resultSet.getString("total_bill"));
103 | area.append("\n Total Payable: "+resultSet.getString("total_bill"));
104 | }
105 |
106 |
107 | }catch (Exception E ){
108 | E.printStackTrace();
109 | }
110 |
111 | }
112 |
113 | public static void main(String[] args) {
114 | new generate_bill("");
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/main_class.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import com.mysql.cj.log.Log;
4 |
5 | import javax.swing.*;
6 | import java.awt.*;
7 | import java.awt.event.ActionEvent;
8 | import java.awt.event.ActionListener;
9 |
10 | public class main_class extends JFrame implements ActionListener {
11 | String acctype;
12 | String meter_pass;
13 | main_class(String acctype, String meter_pass){
14 | this.meter_pass = meter_pass;
15 | this.acctype = acctype;
16 | setExtendedState(JFrame.MAXIMIZED_BOTH);
17 |
18 | ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/ebs.png"));
19 | Image image = imageIcon.getImage().getScaledInstance(1530,830,Image.SCALE_DEFAULT);
20 | ImageIcon imageIcon2 = new ImageIcon(image);
21 | JLabel imageLable = new JLabel(imageIcon2);
22 | add(imageLable);
23 |
24 | JMenuBar menuBar = new JMenuBar();
25 | setJMenuBar(menuBar);
26 |
27 | JMenu menu = new JMenu("Menu");
28 | menu.setFont(new Font("serif",Font.PLAIN,15));
29 |
30 |
31 | JMenuItem newcustomer = new JMenuItem("New Customer");
32 | newcustomer.setFont(new Font("monospaced",Font.PLAIN,14));
33 | ImageIcon customerImg = new ImageIcon(ClassLoader.getSystemResource("icon/newcustomer.png"));
34 | Image customerImage = customerImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
35 | newcustomer.setIcon(new ImageIcon(customerImage));
36 | newcustomer.addActionListener(this);
37 | menu.add(newcustomer);
38 |
39 | JMenuItem customerdetails = new JMenuItem("Customer Details");
40 | customerdetails.setFont(new Font("monospaced",Font.PLAIN,14));
41 | ImageIcon customerdetailsImg = new ImageIcon(ClassLoader.getSystemResource("icon/customerDetails.png"));
42 | Image customerdetailsImage = customerdetailsImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
43 | customerdetails.setIcon(new ImageIcon(customerdetailsImage));
44 | customerdetails.addActionListener(this);
45 | menu.add(customerdetails);
46 |
47 | JMenuItem depositdetails = new JMenuItem("Deposit Details");
48 | depositdetails.setFont(new Font("monospaced",Font.PLAIN,14));
49 | ImageIcon depositdetailsImg = new ImageIcon(ClassLoader.getSystemResource("icon/depositdetails.png"));
50 | Image depositdetailsImage = depositdetailsImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
51 | depositdetails.setIcon(new ImageIcon(depositdetailsImage));
52 | depositdetails.addActionListener(this);
53 | menu.add(depositdetails);
54 |
55 | JMenuItem calculatebill = new JMenuItem("Calculate Bill");
56 | calculatebill.setFont(new Font("monospaced",Font.PLAIN,14));
57 | ImageIcon calculatebillImg = new ImageIcon(ClassLoader.getSystemResource("icon/calculatorbills.png"));
58 | Image calculatebillImage = calculatebillImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
59 | calculatebill.setIcon(new ImageIcon(calculatebillImage));
60 | calculatebill.addActionListener(this);
61 | menu.add(calculatebill);
62 |
63 |
64 | JMenu info = new JMenu("Information");
65 | info.setFont(new Font("serif",Font.PLAIN,15));
66 |
67 |
68 | JMenuItem upinfo =new JMenuItem("Update Information");
69 | upinfo.setFont(new Font("monospaced",Font.PLAIN,14));
70 | ImageIcon upinfoImg = new ImageIcon(ClassLoader.getSystemResource("icon/refresh.png"));
71 | Image upinfoImage = upinfoImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
72 | upinfo.setIcon(new ImageIcon(upinfoImage));
73 | upinfo.addActionListener(this);
74 | info.add(upinfo);
75 |
76 | JMenuItem viewInfo =new JMenuItem("View Information");
77 | viewInfo.setFont(new Font("monospaced",Font.PLAIN,14));
78 | ImageIcon viewInfoImg = new ImageIcon(ClassLoader.getSystemResource("icon/information.png"));
79 | Image viewInfoImage = viewInfoImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
80 | viewInfo.setIcon(new ImageIcon(viewInfoImage));
81 | viewInfo.addActionListener(this);
82 | info.add(viewInfo);
83 |
84 | JMenu user = new JMenu("User");
85 | user.setFont(new Font("serif",Font.PLAIN,15));
86 |
87 |
88 | JMenuItem paybill =new JMenuItem("Pay Bill");
89 | paybill.setFont(new Font("monospaced",Font.PLAIN,14));
90 | ImageIcon paybillImg = new ImageIcon(ClassLoader.getSystemResource("icon/pay.png"));
91 | Image paybillImage = paybillImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
92 | paybill.setIcon(new ImageIcon(paybillImage));
93 | paybill.addActionListener(this);
94 | user.add(paybill);
95 |
96 | JMenuItem billdetails =new JMenuItem("Bill Details");
97 | billdetails.setFont(new Font("monospaced",Font.PLAIN,14));
98 | ImageIcon billdetailsImg = new ImageIcon(ClassLoader.getSystemResource("icon/detail.png"));
99 | Image billdetailsImage = billdetailsImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
100 | billdetails.setIcon(new ImageIcon(billdetailsImage));
101 | billdetails.addActionListener(this);
102 | user.add(billdetails);
103 |
104 | JMenu bill = new JMenu("Bill");
105 | bill.setFont(new Font("serif",Font.PLAIN,15));
106 |
107 |
108 | JMenuItem genBill =new JMenuItem("Generate Bill");
109 | genBill.setFont(new Font("monospaced",Font.PLAIN,14));
110 | ImageIcon genBillImg = new ImageIcon(ClassLoader.getSystemResource("icon/bill.png"));
111 | Image genBillImage = genBillImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
112 | genBill.setIcon(new ImageIcon(genBillImage));
113 | genBill.addActionListener(this);
114 | bill.add(genBill);
115 |
116 | JMenu utility = new JMenu("Utility");
117 | utility.setFont(new Font("serif",Font.PLAIN,15));
118 |
119 |
120 | JMenuItem notepad =new JMenuItem("Notepad");
121 | notepad.setFont(new Font("monospaced",Font.PLAIN,14));
122 | ImageIcon notepadImg = new ImageIcon(ClassLoader.getSystemResource("icon/notepad.png"));
123 | Image notepadImage = notepadImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
124 | notepad.setIcon(new ImageIcon(notepadImage));
125 | notepad.addActionListener(this);
126 | utility.add(notepad);
127 |
128 |
129 | JMenuItem calculator =new JMenuItem("Calculator");
130 | calculator.setFont(new Font("monospaced",Font.PLAIN,14));
131 | ImageIcon calculatorImg = new ImageIcon(ClassLoader.getSystemResource("icon/calculator.png"));
132 | Image calculatorImage = calculatorImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
133 | calculator.setIcon(new ImageIcon(calculatorImage));
134 | calculator.addActionListener(this);
135 | utility.add(calculator);
136 |
137 | JMenu exit = new JMenu("Exit");
138 | exit.setFont(new Font("serif",Font.PLAIN,15));
139 |
140 |
141 | JMenuItem eexit =new JMenuItem("Exit");
142 | eexit.setFont(new Font("monospaced",Font.PLAIN,14));
143 | ImageIcon eexitImg = new ImageIcon(ClassLoader.getSystemResource("icon/exit.png"));
144 | Image eexitImage = eexitImg.getImage().getScaledInstance(20,20,Image.SCALE_DEFAULT);
145 | eexit.setIcon(new ImageIcon(eexitImage));
146 | eexit.addActionListener(this);
147 | exit.add(eexit);
148 |
149 | if (acctype.equals("Admin")){
150 | menuBar.add(menu);
151 | }else {
152 | menuBar.add(bill);
153 | menuBar.add(user);
154 | menuBar.add(info);
155 | }
156 | menuBar.add(utility);
157 | menuBar.add(exit);
158 |
159 |
160 | setLayout(new FlowLayout());
161 | setVisible(true);
162 | }
163 |
164 | @Override
165 | public void actionPerformed(ActionEvent e) {
166 | String msg = e.getActionCommand();
167 | if (msg.equals("New Customer")) {
168 | new newCustomer();
169 | } else if (msg.equals("Customer Details")) {
170 | new customer_details();
171 | } else if (msg.equals("Deposit Details")) {
172 | new deposit_details();
173 | } else if (msg.equals("Calculate Bill")) {
174 | new calculate_bill();
175 | } else if (msg.equals("View Information")) {
176 | new view_information(meter_pass);
177 | } else if (msg.equals("Update Information")) {
178 | new update_information(meter_pass);
179 | } else if (msg.equals("Bill Details")) {
180 | new bill_details(meter_pass);
181 | } else if (msg.equals("Calculator")) {
182 | try{
183 | Runtime.getRuntime().exec("calc.exe");
184 | }catch (Exception E){
185 | E.printStackTrace();
186 | }
187 | } else if (msg.equals("Notepad")) {
188 | try{
189 | Runtime.getRuntime().exec("notepad.exe");
190 | }catch (Exception E){
191 | E.printStackTrace();
192 | }
193 | } else if (msg.equals("Exit")) {
194 | setVisible(false);
195 | new Login();
196 | } else if (msg.equals("Pay Bill")) {
197 | new pay_bill(meter_pass);
198 | } else if (msg.equals("Generate Bill")) {
199 | new generate_bill(meter_pass);
200 | }
201 | }
202 |
203 | public static void main(String[] args) {
204 | new main_class("","");
205 | }
206 | }
207 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/meterInfo.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 |
8 | public class meterInfo extends JFrame implements ActionListener {
9 |
10 | Choice meterLocCho, meterTypCho,phaseCodeCho,billtypCho;
11 | JButton submit;
12 | String meternumber;
13 | meterInfo(String meternumber){
14 | this.meternumber=meternumber;
15 | JPanel panel = new JPanel();
16 | panel.setLayout(null);
17 | panel.setBackground(new Color(252,186,3));
18 | add(panel);
19 |
20 | JLabel heading =new JLabel("Meter Information");
21 | heading.setBounds(180,10,200,20);
22 | heading.setFont(new Font("Tahome",Font.BOLD,20));
23 | panel.add(heading);
24 |
25 | JLabel meterNumber = new JLabel("Meter Number");
26 | meterNumber.setBounds(50,80,100,20);
27 | panel.add(meterNumber);
28 |
29 | JLabel meterNumberText = new JLabel(meternumber);
30 | meterNumberText.setBounds(180,80,150,20);
31 | panel.add(meterNumberText);
32 |
33 | JLabel meterLoc = new JLabel("Meter Number");
34 | meterLoc.setBounds(50,120,100,20);
35 | panel.add(meterLoc);
36 |
37 | meterLocCho =new Choice();
38 | meterLocCho.add("Outside");
39 | meterLocCho.add("Inside");
40 | meterLocCho.setBounds(180,120,150,20);
41 | panel.add(meterLocCho);
42 |
43 | JLabel meterTyp = new JLabel("Meter Type");
44 | meterTyp.setBounds(50,160,100,20);
45 | panel.add(meterTyp);
46 |
47 | meterTypCho =new Choice();
48 | meterTypCho.add("Electric Meter");
49 | meterTypCho.add("Solar Meter");
50 | meterTypCho.add("Smart Meter");
51 | meterTypCho.setBounds(180,160,150,20);
52 | panel.add(meterTypCho);
53 |
54 | JLabel phaseCode = new JLabel("Phase Code");
55 | phaseCode.setBounds(50,200,100,20);
56 | panel.add(phaseCode);
57 |
58 | phaseCodeCho =new Choice();
59 | phaseCodeCho.add("011");
60 | phaseCodeCho.add("022");
61 | phaseCodeCho.add("033");
62 | phaseCodeCho.add("044");
63 | phaseCodeCho.add("055");
64 | phaseCodeCho.add("066");
65 | phaseCodeCho.add("077");
66 | phaseCodeCho.add("088");
67 | phaseCodeCho.add("099");
68 | phaseCodeCho.setBounds(180,200,150,20);
69 | panel.add(phaseCodeCho);
70 |
71 |
72 | JLabel billtyp = new JLabel("Bill Type");
73 | billtyp.setBounds(50,240,100,20);
74 | panel.add(billtyp);
75 |
76 | billtypCho =new Choice();
77 | billtypCho.add("Normal");
78 | billtypCho.add("Industrial");
79 | billtypCho.setBounds(180,240,150,20);
80 | panel.add(billtypCho);
81 |
82 |
83 | JLabel day = new JLabel("30 Days Billing Time...");
84 | day.setBounds(50,280,150,20);
85 | panel.add(day);
86 |
87 | JLabel note = new JLabel("Note:-");
88 | note.setBounds(50,320,100,20);
89 | panel.add(note);
90 |
91 | JLabel note1 = new JLabel("By default bill is calculated for 30 days only");
92 | note1.setBounds(50,340,300,20);
93 | panel.add(note1);
94 |
95 | submit = new JButton("Submit");
96 | submit.setBounds(220,390,100,25);
97 | submit.setBackground(Color.black);
98 | submit.setForeground(Color.white);
99 | submit.addActionListener(this);
100 | panel.add(submit);
101 |
102 | setLayout(new BorderLayout());
103 | add(panel,"Center");
104 |
105 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icon/details.png"));
106 | Image i2 = i1.getImage().getScaledInstance(230,200,Image.SCALE_DEFAULT);
107 | ImageIcon i3 = new ImageIcon(i2);
108 | JLabel imgLabel = new JLabel(i3);
109 | add(imgLabel,"East");
110 |
111 |
112 | setSize(700,500);
113 | setLocation(400,200);
114 | setVisible(true);
115 |
116 | }
117 |
118 | @Override
119 | public void actionPerformed(ActionEvent e) {
120 | if (e.getSource()==submit){
121 | String smeterNum = meternumber;
122 | String smeterLoc = meterLocCho.getSelectedItem();
123 | String smeterTyp = meterTypCho.getSelectedItem();
124 | String sphaseCode = phaseCodeCho.getSelectedItem();
125 | String sbillTyp = billtypCho.getSelectedItem();
126 | String sday ="30";
127 |
128 | String query_meterInfo = "insert into meter_info values('"+smeterNum+"','"+smeterLoc+"','"+smeterTyp+"','"+sphaseCode+"','"+sbillTyp+"','"+sday+"')";
129 | try{
130 | database c= new database();
131 | c.statement.executeUpdate(query_meterInfo);
132 |
133 | JOptionPane.showMessageDialog(null,"Meter Information Submited Successfully");
134 | setVisible(false);
135 | }catch (Exception E){
136 | E.printStackTrace();
137 | }
138 | }else {
139 | setVisible(false);
140 | }
141 | }
142 |
143 | public static void main(String[] args) {
144 | new meterInfo("");
145 | }
146 | }
147 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/newCustomer.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.util.Random;
8 |
9 | public class newCustomer extends JFrame implements ActionListener {
10 | JLabel heading ,meternumText,customerName,meterNum, address,city,state,email,phone;
11 | JButton next, cancel;
12 | TextField nameText, addressText, cityText, stateText ,emailText,phoneText;
13 | newCustomer(){
14 | super("New Customer");
15 | setSize(700,500);
16 | setLocation(400,200);
17 |
18 | JPanel panel = new JPanel();
19 | panel.setLayout(null);
20 | panel.setBackground(new Color(252,186,3));
21 | add(panel);
22 |
23 | heading = new JLabel("New Customer");
24 | heading.setBounds(180,10,200,20);
25 | heading.setFont(new Font("Tahoma",Font.BOLD,20));
26 | panel.add(heading);
27 |
28 | customerName = new JLabel("New Customer");
29 | customerName.setBounds(50,80,100,20);
30 | panel.add(customerName);
31 |
32 | nameText = new TextField();
33 | nameText.setBounds(180,80,150,20);
34 | panel.add(nameText);
35 |
36 | meterNum = new JLabel("Meter Number");
37 | meterNum.setBounds(50,120,100,20);
38 | panel.add(meterNum);
39 |
40 | meternumText = new JLabel("");
41 | meternumText.setBounds(180,120,150,20);
42 | panel.add(meternumText);
43 |
44 | Random ran = new Random();
45 | long number = ran.nextLong() % 1000000;
46 | meternumText.setText(""+ Math.abs(number) );
47 |
48 | address = new JLabel("Address ");
49 | address.setBounds(50,160,100,20);
50 | panel.add(address);
51 |
52 | addressText = new TextField();
53 | addressText.setBounds(180,160,150,20);
54 | panel.add(addressText);
55 |
56 | city = new JLabel("City ");
57 | city.setBounds(50,200,100,20);
58 | panel.add(city);
59 |
60 | cityText = new TextField();
61 | cityText.setBounds(180,200,150,20);
62 | panel.add(cityText);
63 |
64 | state = new JLabel("State ");
65 | state.setBounds(50,240,100,20);
66 | panel.add(state);
67 |
68 | stateText = new TextField();
69 | stateText.setBounds(180,240,150,20);
70 | panel.add(stateText);
71 |
72 | email = new JLabel("Email ");
73 | email.setBounds(50,280,100,20);
74 | panel.add(email);
75 |
76 | emailText = new TextField();
77 | emailText.setBounds(180,280,150,20);
78 | panel.add(emailText);
79 |
80 |
81 | phone = new JLabel("Phone ");
82 | phone.setBounds(50,320,100,20);
83 | panel.add(phone);
84 |
85 | phoneText = new TextField();
86 | phoneText.setBounds(180,320,150,20);
87 | panel.add(phoneText);
88 |
89 | next = new JButton("Next");
90 | next.setBounds(120,390,100,25);
91 | next.setBackground(Color.black);
92 | next.setForeground(Color.white);
93 | next.addActionListener(this);
94 | panel.add(next);
95 |
96 | cancel = new JButton("Cancel");
97 | cancel.setBounds(230,390,100,25);
98 | cancel.setBackground(Color.black);
99 | cancel.setForeground(Color.white);
100 | cancel.addActionListener(this);
101 | panel.add(cancel);
102 |
103 | setLayout(new BorderLayout());
104 | add(panel,"Center");
105 |
106 | ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icon/boy.png"));
107 | Image i2 = i1.getImage().getScaledInstance(230,200,Image.SCALE_DEFAULT);
108 | ImageIcon i3 = new ImageIcon(i2);
109 | JLabel imgLable = new JLabel(i3);
110 | add(imgLable,"West");
111 |
112 | setVisible(true);
113 | }
114 |
115 | @Override
116 | public void actionPerformed(ActionEvent e) {
117 | if (e.getSource()==next){
118 | String sname = nameText.getText();
119 | String smeter = meternumText.getText();
120 | String saddress = addressText.getText();
121 | String scity = cityText.getText();
122 | String sstate = stateText.getText();
123 | String eemail = emailText.getText();
124 | String sphone = phoneText.getText();
125 |
126 |
127 | String query_customer = "insert into new_customer values('"+sname+"','"+smeter+"','"+saddress+"','"+scity+"','"+sstate+"','"+eemail+"','"+sphone+"')";
128 | String query_signup = "insert into Signup values('"+smeter+"','','"+sname+"','','')";
129 |
130 | try{
131 | database c = new database();
132 | c.statement.executeUpdate(query_customer);
133 | c.statement.executeUpdate(query_signup);
134 |
135 | JOptionPane.showMessageDialog(null,"Customer details added successfully");
136 | setVisible(false);
137 | new meterInfo(smeter);
138 | }catch (Exception E){
139 | E.printStackTrace();
140 | }
141 | }else {
142 | setVisible(false);
143 | }
144 | }
145 |
146 | public static void main(String[] args) {
147 | new newCustomer();
148 | }
149 | }
150 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/pay_bill.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.awt.event.ItemEvent;
8 | import java.awt.event.ItemListener;
9 | import java.sql.ResultSet;
10 |
11 | public class pay_bill extends JFrame implements ActionListener {
12 | Choice searchmonthcho;
13 | String meter;
14 | JButton pay,back;
15 |
16 | pay_bill(String meter){
17 | this.meter=meter;
18 | setSize(900,600);
19 | setLocation(300,150);
20 | setLayout(null);
21 |
22 | JLabel heading = new JLabel("Pay Bill");
23 | heading.setFont(new Font("Tahoma",Font.BOLD,24));
24 | heading.setBounds(120,5,400,30);
25 | add(heading);
26 |
27 | JLabel meterNumber = new JLabel("Meter Number");
28 | meterNumber.setBounds(35,80,200,20);
29 | add(meterNumber);
30 |
31 |
32 | JLabel meterNumberText = new JLabel("");
33 | meterNumberText.setBounds(300,80,200,20);
34 | add(meterNumberText);
35 |
36 | JLabel name = new JLabel("Name");
37 | name.setBounds(35,140,200,20);
38 | add(name);
39 |
40 |
41 | JLabel nameText = new JLabel("");
42 | nameText.setBounds(300,140,200,20);
43 | add(nameText);
44 |
45 |
46 |
47 | JLabel month = new JLabel("Month");
48 | month.setBounds(35,200,200,20);
49 | add(month);
50 |
51 | searchmonthcho = new Choice();
52 | searchmonthcho.add("January");
53 | searchmonthcho.add("February");
54 | searchmonthcho.add("March");
55 | searchmonthcho.add("April");
56 | searchmonthcho.add("May");
57 | searchmonthcho.add("June");
58 | searchmonthcho.add("July");
59 | searchmonthcho.add("August");
60 | searchmonthcho.add("September");
61 | searchmonthcho.add("October");
62 | searchmonthcho.add("November");
63 | searchmonthcho.add("December");
64 | searchmonthcho.setBounds(300,200,150,20);
65 | add(searchmonthcho);
66 |
67 | JLabel unit = new JLabel("Unit");
68 | unit.setBounds(35,260,200,20);
69 | add(unit);
70 |
71 |
72 | JLabel unitText = new JLabel("");
73 | unitText.setBounds(300,260,200,20);
74 | add(unitText);
75 |
76 | JLabel totalBill = new JLabel("Total Bill");
77 | totalBill.setBounds(35,320,200,20);
78 | add(totalBill);
79 |
80 |
81 | JLabel totalBillText = new JLabel("");
82 | totalBillText.setBounds(300,320,200,20);
83 | add(totalBillText);
84 |
85 |
86 | JLabel status = new JLabel("Status");
87 | status.setBounds(35,380,200,20);
88 | add(status);
89 |
90 |
91 | JLabel statusText = new JLabel("");
92 | statusText.setBounds(300,380,200,20);
93 | statusText.setForeground(Color.RED);
94 | add(statusText);
95 |
96 | try{
97 | database c = new database();
98 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no = '"+meter+"'");
99 | while (resultSet.next()){
100 | meterNumberText.setText(meter);
101 | nameText.setText(resultSet.getString("name"));
102 | }
103 | }catch (Exception e){
104 | e.printStackTrace();
105 | }
106 |
107 | searchmonthcho.addItemListener(new ItemListener() {
108 | @Override
109 | public void itemStateChanged(ItemEvent e) {
110 | database c = new database();
111 | try{
112 | ResultSet resultSet = c.statement.executeQuery("select * from bill where meter_no = '"+meter+"' and month = '"+searchmonthcho.getSelectedItem()+"'");
113 | while (resultSet.next()){
114 | unitText.setText(resultSet.getString("unit"));
115 | totalBillText.setText(resultSet.getString("total_bill"));
116 | statusText.setText(resultSet.getString("status"));
117 | }
118 | }catch (Exception E){
119 | E.printStackTrace();
120 | }
121 | }
122 | });
123 |
124 | pay = new JButton("Pay");
125 | pay.setBackground(Color.black);
126 | pay.setForeground(Color.white);
127 | pay.setBounds(100,460,100,25);
128 | pay.addActionListener(this);
129 | add(pay);
130 |
131 |
132 | back = new JButton("Back");
133 | back.setBackground(Color.black);
134 | back.setForeground(Color.white);
135 | back.setBounds(230,460,100,25);
136 | back.addActionListener(this);
137 | add(back);
138 |
139 | setVisible(true);
140 | }
141 |
142 | @Override
143 | public void actionPerformed(ActionEvent e) {
144 | if (e.getSource()==pay){
145 | try{
146 | database c = new database();
147 | c.statement.executeUpdate("update bill set status = 'Paid' where meter_no = '"+meter+"' and month = '"+searchmonthcho.getSelectedItem()+"'");
148 | }catch (Exception E){
149 | E.printStackTrace();
150 | }
151 | setVisible(false);
152 | new payment_bill(meter);
153 | }else {
154 | setVisible(false);
155 | }
156 | }
157 |
158 | public static void main(String[] args) {
159 | new pay_bill("");
160 | }
161 | }
162 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/payment_bill.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.event.ActionEvent;
5 | import java.awt.event.ActionListener;
6 |
7 | public class payment_bill extends JFrame implements ActionListener {
8 | JButton back;
9 | String meter;
10 | payment_bill(String meter){
11 | this.meter = meter;
12 | JEditorPane j = new JEditorPane();
13 | j.setEditable(false);
14 |
15 | try{
16 | j.setPage("https://paytm.com/online-payments");
17 | j.setBounds(400,150,800,600);
18 | }catch (Exception E){
19 | E.printStackTrace();
20 | j.setContentType("text/html");
21 | j.setText("Errorr! Errorr! Errorr! Errorr! Errorr! Errorr! ");
22 | }
23 |
24 | JScrollPane pane = new JScrollPane(j);
25 | add(pane);
26 |
27 | back = new JButton("Back");
28 | back.setBounds(640,20,80,30);
29 | back.addActionListener(this);
30 | j.add(back);
31 |
32 |
33 | setSize(800,600);
34 | setLocation(400,150);
35 | setVisible(true);
36 |
37 | }
38 |
39 | @Override
40 | public void actionPerformed(ActionEvent e) {
41 | setVisible(false);
42 | new pay_bill(meter);
43 | }
44 |
45 | public static void main(String[] args) {
46 | new payment_bill("");
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/update_information.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.awt.geom.RectangularShape;
8 | import java.sql.ResultSet;
9 |
10 | public class update_information extends JFrame implements ActionListener {
11 | JLabel nametext;
12 | JTextField addressText,cityText,stateText,emailText,phoneText;
13 | String meter;
14 | JButton update,cancel;
15 | update_information(String meter){
16 | this.meter=meter;
17 | setBounds(400,150,777,450);
18 | getContentPane().setBackground(new Color(229,255,227));
19 | setLayout(null);
20 |
21 | JLabel heading = new JLabel("Update Customer Information");
22 | heading.setBounds(50,10,400,40);
23 | heading.setFont(new Font("serif",Font.BOLD,20));
24 | add(heading);
25 |
26 | JLabel name = new JLabel("Name");
27 | name.setBounds(30,70,100,20);
28 | add(name);
29 |
30 | nametext = new JLabel("");
31 | nametext.setBounds(150,70,200,20);
32 | add(nametext);
33 |
34 | JLabel meterNo = new JLabel("Meter Number");
35 | meterNo.setBounds(30,110,100,20);
36 | add(meterNo);
37 |
38 | JLabel meterText = new JLabel("");
39 | meterText.setBounds(150,110,100,20);
40 | add(meterText);
41 |
42 |
43 | JLabel address = new JLabel("Address");
44 | address.setBounds(30,150,100,20);
45 | add(address);
46 |
47 | addressText = new JTextField();
48 | addressText.setBounds(150,150,200,20);
49 | add(addressText);
50 |
51 | JLabel city = new JLabel("City");
52 | city.setBounds(30,190,100,20);
53 | add(city);
54 |
55 | cityText = new JTextField();
56 | cityText.setBounds(150,190,200,20);
57 | add(cityText);
58 |
59 | JLabel state = new JLabel("State");
60 | state.setBounds(30,230,100,20);
61 | add(state);
62 |
63 | stateText = new JTextField();
64 | stateText.setBounds(150,230,200,20);
65 | add(stateText);
66 |
67 | JLabel email = new JLabel("Email");
68 | email.setBounds(30,270,100,20);
69 | add(email);
70 |
71 | emailText = new JTextField();
72 | emailText.setBounds(150,270,200,20);
73 | add(emailText);
74 |
75 | JLabel phone = new JLabel("Phone");
76 | phone.setBounds(30,310,100,20);
77 | add(phone);
78 |
79 | phoneText = new JTextField();
80 | phoneText.setBounds(150,310,200,20);
81 | add(phoneText);
82 |
83 | try{
84 | database c = new database();
85 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no = '"+meter+"'");
86 | if (resultSet.next()){
87 | nametext.setText(resultSet.getString("name"));
88 | meterText.setText(resultSet.getString("meter_no"));
89 | addressText.setText(resultSet.getString("address"));
90 | cityText.setText(resultSet.getString("city"));
91 | stateText.setText(resultSet.getString("state"));
92 | emailText.setText(resultSet.getString("email"));
93 | phoneText.setText(resultSet.getString("phone_no"));
94 | }
95 | }catch (Exception e){
96 | e.printStackTrace();
97 | }
98 |
99 | update = new JButton("Update");
100 | update.setBackground(new Color(33,106,145));
101 | update.setForeground(Color.white);
102 | update.setBounds(50,360,120,25);
103 | update.addActionListener(this);
104 | add(update);
105 |
106 | cancel = new JButton("Cancel");
107 | cancel.setBackground(new Color(33,106,145));
108 | cancel.setForeground(Color.white);
109 | cancel.setBounds(200,360,120,25);
110 | cancel.addActionListener(this);
111 | add(cancel);
112 |
113 |
114 | ImageIcon imageIcon = new ImageIcon(ClassLoader.getSystemResource("icon/update.png"));
115 | Image image = imageIcon.getImage().getScaledInstance(400,410,Image.SCALE_DEFAULT);
116 | ImageIcon imageIcon1 = new ImageIcon(image);
117 | JLabel imgLabel = new JLabel(imageIcon1);
118 | imgLabel.setBounds(360,0,400,410);
119 | add(imgLabel);
120 |
121 | setVisible(true);
122 |
123 | }
124 |
125 | @Override
126 | public void actionPerformed(ActionEvent e) {
127 | if (e.getSource()==update){
128 | String saddress = addressText.getText();
129 | String scity = cityText.getText();
130 | String sstate = stateText.getText();
131 | String semail = emailText.getText();
132 | String sphone = phoneText.getText();
133 |
134 | try{
135 | database c = new database();
136 | c.statement.executeUpdate("update new_customer set address ='"+saddress+"', city = '"+scity+"', state = '"+sstate+"', email = '"+semail+"', phone_no ='"+sphone+"' where meter_no = '"+meter+"'");
137 |
138 | JOptionPane.showMessageDialog(null,"User Information Updated Successfully");
139 | setVisible(false);
140 | }catch (Exception E){
141 | E.printStackTrace();
142 | }
143 | }else {
144 | setVisible(false);
145 | }
146 | }
147 |
148 | public static void main(String[] args) {
149 | new update_information("");
150 | }
151 | }
152 |
--------------------------------------------------------------------------------
/src/electricity/billing/system/view_information.java:
--------------------------------------------------------------------------------
1 | package electricity.billing.system;
2 |
3 | import javax.swing.*;
4 | import java.awt.*;
5 | import java.awt.event.ActionEvent;
6 | import java.awt.event.ActionListener;
7 | import java.security.cert.Extension;
8 | import java.sql.ResultSet;
9 |
10 | public class view_information extends JFrame implements ActionListener {
11 | String view;
12 | JButton cancel;
13 | view_information(String view){
14 | this.view = view;
15 | setBounds(350,150,850,650);
16 | getContentPane().setBackground(Color.WHITE);
17 | setLayout(null);
18 |
19 | JLabel heading = new JLabel("View Customer Information");
20 | heading.setBounds(250,0,500,40);
21 | heading.setFont(new Font("serif",Font.BOLD,20) );
22 | add(heading);
23 |
24 |
25 | JLabel nameLabel = new JLabel("Name");
26 | nameLabel.setBounds(70,80,100,20);
27 | add(nameLabel);
28 |
29 | JLabel nameLabelText = new JLabel("");
30 | nameLabelText.setBounds(200,80,150,20);
31 | add(nameLabelText);
32 |
33 |
34 | JLabel meterno = new JLabel("Meter Number");
35 | meterno.setBounds(70,140,100,20);
36 | add(meterno);
37 |
38 |
39 | JLabel meternoText = new JLabel("");
40 | meternoText.setBounds(200,140,150,20);
41 | add(meternoText);
42 |
43 | JLabel address = new JLabel("Address");
44 | address.setBounds(70,200,100,20);
45 | add(address);
46 |
47 |
48 | JLabel addressText = new JLabel("");
49 | addressText.setBounds(200,200,150,20);
50 | add(addressText);
51 |
52 | JLabel city = new JLabel("City");
53 | city.setBounds(70,260,100,20);
54 | add(city);
55 |
56 |
57 | JLabel cityText = new JLabel("");
58 | cityText.setBounds(200,260,150,20);
59 | add(cityText);
60 |
61 | JLabel state = new JLabel("State");
62 | state.setBounds(500,80,100,20);
63 | add(state);
64 |
65 |
66 | JLabel stateText = new JLabel("");
67 | stateText.setBounds(600,80,150,20);
68 | add(stateText);
69 |
70 | JLabel email = new JLabel("Email");
71 | email.setBounds(500,140,100,20);
72 | add(email);
73 |
74 | JLabel emailText = new JLabel("");
75 | emailText.setBounds(600,140,150,20);
76 | add(emailText);
77 |
78 |
79 | JLabel phone = new JLabel("phone");
80 | phone.setBounds(500,200,100,20);
81 | add(phone);
82 |
83 | JLabel phoneText = new JLabel("");
84 | phoneText.setBounds(600,200,150,20);
85 | add(phoneText);
86 |
87 | try{
88 | database c = new database();
89 | ResultSet resultSet = c.statement.executeQuery("select * from new_customer where meter_no = '"+view+"'");
90 | if (resultSet.next()){
91 | nameLabelText.setText(resultSet.getString("name"));
92 | meternoText.setText(resultSet.getString("meter_no"));
93 | addressText.setText(resultSet.getString("address"));
94 | cityText.setText(resultSet.getString("city"));
95 | stateText.setText(resultSet.getString("state"));
96 | emailText.setText(resultSet.getString("email"));
97 | phoneText.setText(resultSet.getString("phone_no"));
98 |
99 | }
100 | }catch (Exception e){
101 | e.printStackTrace();
102 | }
103 | cancel = new JButton("Cancel");
104 | cancel.setBackground(new Color(24,118,242));
105 | cancel.setForeground(Color.white);
106 | cancel.setBounds(220,350,120,25);
107 | cancel.addActionListener(this);
108 | add(cancel);
109 |
110 | ImageIcon a1 = new ImageIcon(ClassLoader.getSystemResource("icon/viewInfo.png"));
111 | Image a2 = a1.getImage().getScaledInstance(600,300,Image.SCALE_DEFAULT);
112 | ImageIcon i3 = new ImageIcon(a2);
113 | JLabel img = new JLabel(i3);
114 | img.setBounds(100,320,600,300);
115 | add(img);
116 |
117 | setVisible(true);
118 | }
119 |
120 | @Override
121 | public void actionPerformed(ActionEvent e) {
122 | if (e.getSource()==cancel){
123 | setVisible(false);
124 | }
125 | }
126 |
127 | public static void main(String[] args) {
128 | new view_information("");
129 |
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/src/icon/Splash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/Splash.jpg
--------------------------------------------------------------------------------
/src/icon/bill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/bill.png
--------------------------------------------------------------------------------
/src/icon/boy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/boy.png
--------------------------------------------------------------------------------
/src/icon/budget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/budget.png
--------------------------------------------------------------------------------
/src/icon/calculator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/calculator.png
--------------------------------------------------------------------------------
/src/icon/calculatorbills.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/calculatorbills.png
--------------------------------------------------------------------------------
/src/icon/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/cancel.png
--------------------------------------------------------------------------------
/src/icon/customerDetails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/customerDetails.png
--------------------------------------------------------------------------------
/src/icon/depositdetails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/depositdetails.png
--------------------------------------------------------------------------------
/src/icon/detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/detail.png
--------------------------------------------------------------------------------
/src/icon/details.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/details.png
--------------------------------------------------------------------------------
/src/icon/ebs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/ebs.png
--------------------------------------------------------------------------------
/src/icon/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/exit.png
--------------------------------------------------------------------------------
/src/icon/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/information.png
--------------------------------------------------------------------------------
/src/icon/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/login.png
--------------------------------------------------------------------------------
/src/icon/newcustomer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/newcustomer.png
--------------------------------------------------------------------------------
/src/icon/notepad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/notepad.png
--------------------------------------------------------------------------------
/src/icon/pay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/pay.png
--------------------------------------------------------------------------------
/src/icon/profile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/profile.png
--------------------------------------------------------------------------------
/src/icon/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/refresh.png
--------------------------------------------------------------------------------
/src/icon/sign-up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/sign-up.png
--------------------------------------------------------------------------------
/src/icon/slash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/slash.png
--------------------------------------------------------------------------------
/src/icon/splash/Splash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/splash/Splash.jpg
--------------------------------------------------------------------------------
/src/icon/update.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/update.png
--------------------------------------------------------------------------------
/src/icon/viewInfo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashuuu14/Electricity-Billing-System-Java-Project/0c00af39d313ac15a280a9dcd35bb9ac9dad7553/src/icon/viewInfo.png
--------------------------------------------------------------------------------