-
Notifications
You must be signed in to change notification settings - Fork 3
/
About.java
48 lines (37 loc) · 1.52 KB
/
About.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
package university.management.system;
import javax.swing.*;
import java.awt.*;
public class About extends JFrame {
About() {
setSize(700, 500);
setLocation(400, 150);
getContentPane().setBackground(Color.WHITE);
ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icons/about.jpg"));
Image i2 = i1.getImage().getScaledInstance(300, 300, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(340, 0, 300, 220);
add(image);
JLabel heading = new JLabel("<html>University<br/>Management System</html>");
heading.setBounds(70, 20, 300, 130);
heading.setFont(new Font("Tahoma", Font.BOLD, 30));
add(heading);
JLabel name = new JLabel("Designed by:Muhammad Hasnat Rasool");
name.setBounds(70, 220, 560, 40);
name.setFont(new Font("Tahoma", Font.BOLD, 27));
add(name);
JLabel rollno = new JLabel("Roll number: FA23-BCS-116");
rollno.setBounds(70, 280, 550, 40);
rollno.setFont(new Font("Tahoma", Font.PLAIN, 28));
add(rollno);
JLabel contact = new JLabel("Contact: hasnatrasool163@gmail.com");
contact.setBounds(70, 340, 550, 40);
contact.setFont(new Font("Tahoma", Font.PLAIN, 20));
add(contact);
setLayout(null);
setVisible(true);
}
public static void main(String[] args) {
new About();
}
}