-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbout.java
More file actions
81 lines (73 loc) · 1.93 KB
/
About.java
File metadata and controls
81 lines (73 loc) · 1.93 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
import java.awt.*;
import javax.swing.*;
class About extends JFrame
{
Toolkit toolkit;
Dimension dim;
int w,h;
JPanel p1=new JPanel();
JPanel p2=new JPanel();
JPanel p5=new JPanel()
{
public void paintComponent(Graphics g)
{
g.drawImage(new ImageIcon("grp1.jpg").getImage(),0,0,560,240,null);
}
};
JPanel p3=new JPanel()
{
public void paintComponent(Graphics g)
{
g.drawImage(new ImageIcon("logo1.jpg").getImage(),0,0,1400,140,null);
}
};
JPanel p4=new JPanel()
{
public void paintComponent(Graphics g)
{
g.drawImage(new ImageIcon("gi1.jpg").getImage(),40,30,460,400,null);
}
};
JLabel l2=new JLabel(" Thank You......... ");
JTextArea a=new JTextArea(40,40);
About()
{
super("Online Library Management System Of NIELIT");
toolkit=Toolkit.getDefaultToolkit();
dim=toolkit.getScreenSize();
w=(int)dim.getWidth();
h=(int)dim.getHeight();
add(p1);
p1.setLayout(null);
p1.add(p2);
p1.setBackground(new Color(0,206,209));
p2.setBounds(w/2-80,h/2-170,650,500);
p2.setBackground(new Color(211,211,211));
p2.setPreferredSize(new Dimension(900,550));
p2.setLayout(null);
p1.add(p3);
p3.setBackground(new Color(255,255,255));
p4.setBackground(new Color(255,255,255));
p3.setBounds(0,2,1400,140);
p3.setLayout(null);
p1.add(p4);
p2.add(p5);
p5.setLayout(null);
p5.setBounds(90,50,500,200);
p4.setBounds(10,200,600,400);
p4.setLayout(null);
l2.setBounds(190,460,270,25);
l2.setFont(new Font("FRANKLIN GOTHIC",Font.BOLD,20));
l2.setForeground(new Color(255,0,0));
a.setBounds(100,270,470,180);
p2.add(a); p2.add(l2);
setResizable(false);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setSize(w,h);
setVisible(true);
}
public static void main(String[]args)
{
new About();
}
}