-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm3.java
76 lines (59 loc) · 1.39 KB
/
Form3.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
class Form3 extends Frame implements ActionListener
{
JButton bs,bt;
Form3()
{
super("Third Page");
setBackground(Color.black);
setLayout(null);
bs=new JButton("Substitution Technique");
bs.setBounds(100,100,400,60);
bs.setForeground(Color.yellow);
bs.setBackground(Color.black);
bs.setBorder(new LineBorder(Color.blue,1));
bs.setFont(new Font("Comic Sans MS 14",Font.PLAIN,40));
bs.addActionListener(this);
add(bs);
bt=new JButton("Transposition Technique");
bt.setBounds(700,500,430,60);
bt.setForeground(Color.yellow);
bt.setBackground(Color.black);
bt.setBorder(new LineBorder(Color.blue,1));
bt.setFont(new Font("Comic Sans MS 14",Font.PLAIN,40));
bt.addActionListener(this);
add(bt);
setUndecorated(true);
setSize(1367,768);
setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
JButton b=(JButton)ae.getSource();
if(b==bs)
{
Form4 f=new Form4();
}
if(b==bt)
{
Form5 f1=new Form5();
}
}
/*public void paint(Graphics g)
{
int x=0,y=0;
for(y=0,x=0;y<400;x++,y++)
{
bs.setBounds(x,y,400,60);
}
if(y==390)
bs.setBounds(100,390,200,60);
}*/
public static void main(String []args)
{
new Form3();
}
}