-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewHelp.java
More file actions
32 lines (31 loc) · 772 Bytes
/
ViewHelp.java
File metadata and controls
32 lines (31 loc) · 772 Bytes
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
import java.util.*;
import java.awt.*;
import java.awt.event.*;
class ViewHelp extends Dialog implements ActionListener
{
Label l1;
Button b1;
MainMenu k;
public ViewHelp(MainMenu p,String tt,boolean rr)
{
super(p,tt,rr);
k=p;
//setLayout()= new Layout(null);
setLayout(new FlowLayout());
l1= new Label("Please Contact Mr.Akshit Mangotra: 9465675515");
b1= new Button("Exit");
l1.setBounds(100,100,50,50);
b1.setBounds(120,120,50,50);
add(l1);
add(b1);
b1.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
String str= ae.getActionCommand();
if(str.equals("Exit"))
{
this.dispose();
}
}
}