-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSalesManagementSystem.java
More file actions
executable file
·123 lines (115 loc) · 3.53 KB
/
SalesManagementSystem.java
File metadata and controls
executable file
·123 lines (115 loc) · 3.53 KB
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
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
import javax.swing.*;
class SalesManagementSystem implements ActionListener
{
JFrame frame;
JButton orderentry,ordership,invoicegen,macinstall,paystat,orderstat,exitbutton;
Border blackline;
JLabel label;
JPanel panel,finalpanel;
JScrollPane scroll;
SalesManagementSystem()
{
frame=new JFrame("Sales Management System");
finalpanel=new JPanel();
scroll=new JScrollPane(finalpanel);
orderentry=new JButton("1.ENTER A NEW ORDER");
orderentry.setBackground(Color.white);
orderentry.setFont(new Font("Arial Black", Font.PLAIN, 17));
orderentry.setForeground(Color.blue);
orderentry.setHorizontalAlignment(SwingConstants.LEFT);
ordership=new JButton("2.SCHEDULE ORDER FOR SHIPMENT");
ordership.setBackground(Color.white);
ordership.setFont(new Font("Arial Black", Font.PLAIN, 17));
ordership.setForeground(Color.blue);
ordership.setHorizontalAlignment(SwingConstants.LEFT);
invoicegen=new JButton("3.GENERATE INVOICE");
invoicegen.setBackground(Color.white);
invoicegen.setFont(new Font("Arial Black", Font.PLAIN, 17));
invoicegen.setForeground(Color.blue);
invoicegen.setHorizontalAlignment(SwingConstants.LEFT);
macinstall=new JButton("4.SCHEDULE MACHINE INSTALLATION.");
macinstall.setBackground(Color.white);
macinstall.setFont(new Font("Arial Black", Font.PLAIN, 17));
macinstall.setForeground(Color.blue);
macinstall.setHorizontalAlignment(SwingConstants.LEFT);
paystat=new JButton("5.PAYMENT STATUS");
paystat.setHorizontalAlignment(SwingConstants.LEFT);
paystat.setFont(new Font("Arial Black", Font.PLAIN, 17));
paystat.setForeground(Color.blue);
paystat.setBackground(Color.white);
orderstat=new JButton("6.ORDER STATUS");
orderstat.setHorizontalAlignment(SwingConstants.LEFT);
orderstat.setFont(new Font("Arial Black", Font.PLAIN, 17));
orderstat.setForeground(Color.blue);
orderstat.setBackground(Color.white);
exitbutton=new JButton("7.EXIT");
exitbutton.setHorizontalAlignment(SwingConstants.LEFT);
exitbutton.setBackground(Color.white);
exitbutton.setFont(new Font("Arial Black", Font.PLAIN, 17));
exitbutton.setForeground(Color.blue);
label=new JLabel(new ImageIcon("sms2.png"));
panel=new JPanel();
panel.setLayout(new GridLayout(1,1));
panel.add(label);
panel.setBackground(Color.white);
orderentry.addActionListener(this);
ordership.addActionListener(this);
invoicegen.addActionListener(this);
macinstall.addActionListener(this);
paystat.addActionListener(this);
orderstat.addActionListener(this);
exitbutton.addActionListener(this);
frame.setSize(1300,760);
frame.setLayout(new GridLayout(1,1));
frame.add(scroll);
finalpanel.setLayout(new GridLayout(8,1));
finalpanel.add(panel);
finalpanel.add(orderentry);
finalpanel.add(ordership);
finalpanel.add(invoicegen);
finalpanel.add(macinstall);
finalpanel.add(paystat);
finalpanel.add(orderstat);
finalpanel.add(exitbutton);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==orderentry)
{
new Screen1();
}
if(e.getSource()==ordership)
{
new Screen2();
}
if(e.getSource()==invoicegen)
{
new Screen3();
}
if(e.getSource()==macinstall)
{
new Screen4();
}
if(e.getSource()==paystat)
{
new Screen5();
}
if(e.getSource()==orderstat)
{
new Screen6();
}
if(e.getSource()==exitbutton)
{
System.exit(0);
}
}
public static void main(String[] args)
{
new SalesManagementSystem();
}
}