-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm4.java
68 lines (54 loc) · 1.29 KB
/
Form4.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
class Form4 extends Frame implements ActionListener
{
JButton bce,bco;
Form4()
{
super("Third Page");
setBackground(Color.black);
setLayout(null);
bce=new JButton("Ceaser Cipher Technique");
bce.setBounds(100,100,500,60);
bce.setForeground(Color.yellow);
bce.setBackground(Color.black);
bce.setBorder(new LineBorder(Color.blue,1));
bce.setFont(new Font("Comic Sans MS 14",Font.PLAIN,40));
bce.addActionListener(this);
add(bce);
bco=new JButton("Columnar Technique");
bco.setBounds(700,500,550,60);
bco.setForeground(Color.yellow);
bco.setBackground(Color.black);
bco.setBorder(new LineBorder(Color.blue,1));
bco.setFont(new Font("Comic Sans MS 14",Font.PLAIN,40));
bco.addActionListener(this);
add(bco);
try
{
Thread.sleep(4000);
}
catch(Exception e1){}
setUndecorated(true);
setSize(1367,768);
setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
JButton b=(JButton)ae.getSource();
if(b==bce)
{
Ceaser1 c=new Ceaser1();
}
if(b==bco)
{
Column c1=new Column();
}
}
public static void main(String []args)
{
new Form4();
}
}