-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSchoolsList.java
121 lines (86 loc) · 3.2 KB
/
SchoolsList.java
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
package smartcity.management.system;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
public class SchoolsList extends JFrame {
JButton b1,b2,b3,b4 ;
JPanel p1,p2;
JLabel l1,l2,l3,l4,l5,l6;
SchoolsList()
{
setLayout(null);
getContentPane().setBackground(Color.WHITE);
setBounds(500 , 300, 1000,400);
JPanel p1=new JPanel();
p1.setBackground(new Color(131, 193, 233));
p1.setBounds(0, 0, 400, 400);
p1.setLayout(null);
add(p1);
ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("smartcity/management/system/icons/Schools.jpg.png"));
Image i2 = i1.getImage().getScaledInstance( 400, 400, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l1 = new JLabel(i3);
l1.setBounds(0, 0 , 400 , 400);
p1.add(l1);
p2 = new JPanel();
p2.setLayout(null);
p2.setBounds( 400,0,4500,3000);
p2.setBackground(new Color(0,0,10));
add(p2);
JLabel l2 = new JLabel("LIST OF TOP SCHOOLS IN BENGALURU ");
l2.setBounds( 5 , 20 ,3000 , 25);
l2.setFont(new Font("SAN_SERIF", Font.BOLD,25));
l2.setForeground(Color.WHITE);
p2.add(l2);
JLabel l3 = new JLabel("Bishops Cotton Girls School ");
l3.setBounds( 60 ,60 , 700 , 45);
l3.setFont(new Font("SAN_SERIF", Font.ITALIC,20));
l3.setForeground(Color.WHITE);
p2.add(l3);
JButton b1 = new JButton("view more");
b1.setBounds( 60, 100 ,100 ,25);
b1.setBackground(new Color(133, 193, 233));
b1.setForeground(Color.WHITE);
b1.setBorder(BorderFactory.createEmptyBorder());
p2.add(b1);
JLabel l4 = new JLabel("Delhi Public School");
l4.setBounds(60 , 60 , 1500 ,175);
l4.setFont(new Font("SAN_SERIF", Font.ITALIC,20));
l4.setForeground(Color.WHITE);
p2.add(l4);
JButton b2 = new JButton("view more");
b2.setBounds( 60, 165 ,100 ,25);
b2.setBackground(new Color(133, 193, 233));
b2.setForeground(Color.WHITE);
b2.setBorder(BorderFactory.createEmptyBorder());
p2.add(b2);
JLabel l5 = new JLabel("Greenwood High Internationals");
l5.setBounds(60 , 60 , 2500 ,305);
l5.setFont(new Font("SAN_SERIF", Font.ITALIC,20));
l5.setForeground(Color.WHITE);
p2.add(l5);
JButton b3 = new JButton("view more");
b3.setBounds( 60, 230 ,100 ,25);
b3.setBackground(new Color(133, 193, 233));
b3.setForeground(Color.WHITE);
b3.setBorder(BorderFactory.createEmptyBorder());
p2.add(b3);
JLabel l6 = new JLabel("The Valley School");
l6.setBounds(60 , 60 ,4500 ,435);
l6.setFont(new Font("SAN_SERIF", Font.ITALIC,20));
l6.setForeground(Color.WHITE);
p2.add(l6);
JButton b4 = new JButton("view more");
b4.setBounds( 60, 295 ,100 ,25);
b4.setBackground(new Color(133, 193, 233));
b4.setForeground(Color.WHITE);
b4.setBorder(BorderFactory.createEmptyBorder());
p2.add(b4);
setVisible(true);
}
public static void main(String args[])
{
new SchoolsList().setVisible(true);
}
}