-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelp4.java
78 lines (63 loc) · 1.59 KB
/
Help4.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Help4 extends JFrame implements ActionListener
{
JTextField t1,t2;
JButton b1,b2;
int a,b,c,d;
TextArea t;
public Help4()
{
setTitle(" Help4 ");
setVisible(true);
setLayout(new BorderLayout());
JLabel background =new JLabel(new ImageIcon("11.jpg"));
TextArea t = new TextArea();
t.setText("\n\t\t * Create New Account * \n\n 1 : GoTO Login Page \n\n 2 : Click ON Create Account Button \n\n 3 : Enter UserName PassWord Age & Gander \n\n 4 : And Click ON Submit Button ");
b1=new JButton("Back");
b2=new JButton("Exit");
t2=new JTextField("HELP..");
t1=new JTextField(" Fallow the given Instruction ");
add(background);
background.add(t1);
background.add(b1);
background.add(b2);
background.add(t);
background.add(t1);
background.add(t2);
setSize(700,700);
setLocationRelativeTo(null);
b1.addActionListener(this);
b2.addActionListener(this);
t.setBounds(100,150,500,400);
t1.setBounds(20,70,650,40);
t2.setBounds(250,20,150,40);
b1.setBounds(20,600,100,30);
b2.setBounds(550,600,100,30);
t1.setEditable(false);
t2.setEditable(false);
t.setEditable(false);
Font f1=new Font("Algerian",Font.ITALIC,30);
t2.setFont(f1);
Font f2=new Font("Arial",Font.BOLD,20);
t.setFont(f2);
t1.setFont(f1);
}
public static void main (String arg[])
{
Help4 f1 = new Help4();
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==b1)
{
new HowToUse();
}
if(ae.getSource()==b2)
{
System.exit(0);
}
repaint();
}
}