-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutUs.java
52 lines (37 loc) · 1.62 KB
/
AboutUs.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
package university.management.system;
import javax.swing.*;
import java.awt.*;
public class AboutUs extends JFrame {
AboutUs() {
setSize(700, 500);
setLocation(400, 150);
getContentPane().setBackground(Color.WHITE);
ImageIcon i1 = new ImageIcon("C:\\Documents\\NetBeansProjects\\University.management.system\\icons\\about.png");
Image i2 = i1.getImage().getScaledInstance(300, 200, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(350, 0, 300, 200);
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("Developed and modified By: AritriPodder");
name.setBounds(60, 220, 550, 40);
name.setFont(new Font("Tahoma", Font.BOLD, 30));
add(name);
// JLabel rollno = new JLabel("Roll number: 1533146");
// rollno.setBounds(70, 280, 550, 40);
// rollno.setFont(new Font("Tahoma", Font.PLAIN, 30));
// add(rollno);
JLabel contact = new JLabel("Contact: [email protected]");
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 AboutUs();
}
}