-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbout.java
More file actions
61 lines (47 loc) · 1.58 KB
/
About.java
File metadata and controls
61 lines (47 loc) · 1.58 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.Color;
import javax.swing.*;
import java.awt.event.*;
/**
*
* @author root
*/
public class About extends JFrame {
JButton back;
About() {
setSize(950, 700);
setVisible(true);
setLayout(null);
setBounds(600, 100, 950, 700);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel l1 = new JLabel("<html><body text=green><h1 text=red>Contact:</h1>xxx00000010101010@gmail.com</body></html>");
l1.setBounds(400, 100, 200, 70);
add(l1);
JLabel l2 = new JLabel("<html><body text=green><b text=red>Name:</b> Ruhit Rai</body></html>");
l2.setBounds(400, 400, 200, 70);
add(l2);
back = new JButton("Back");
back.setSize(100, 100);
back.setIcon(new ImageIcon(getClass().getResource("/11.png")));
back.setHorizontalAlignment(SwingConstants.LEFT);
getContentPane().setBackground(new Color(44, 47, 51));
back.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);
WelcomePage w = new WelcomePage();
}
});
back.setBounds(400, 600, 100, 30);
add(back);
}
}
class Taew {
public static void main(String[] args) {
About a = new About();
a.repaint();
}
}