-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.java
75 lines (74 loc) · 1.8 KB
/
contact.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class contact extends JFrame implements ActionListener
{
Container c = getContentPane();
JButton jb = new JButton("Back");
int index;
public contact(int ind)
{
super("Contact_Us...");
index=ind;
Image icon = Toolkit.getDefaultToolkit().getImage(".\\img\\contact.png");
setIconImage(icon);
jb.setBounds(955,595,80,40);
c.add(jb);
JTabbedPane jtp=new JTabbedPane();
jtp.addTab("Email us @... ",new Email_usPanel());
jtp.addTab("Contact_us ",new Contact_usPanel());
c.add(jtp);
jb.addActionListener(this);
setSize(1340,720);
setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
try{
UPortal up = new UPortal();
up.lf.setSelectedIndex(index);
}catch(Exception e){}
setVisible(false);
}
public static void main(String arg[])
{
}
}
class Email_usPanel extends JPanel
{
public Email_usPanel()
{
JButton b1=new JButton("vivekvannam95@gmail.com");
add(b1);
JButton b2=new JButton("rangam.guru@gmail.com");
add(b2);
JButton b3=new JButton("naroleanand@gmail.com");
add(b3);
JButton b4=new JButton("prem.chalmeti1289@gmail.com");
add(b4);
setLayout(null);
b1.setBounds(450,450,250,40);
b2.setBounds(450,350,250,40);
b3.setBounds(450,250,250,40);
b4.setBounds(450,150,250,40);
}
}
class Contact_usPanel extends JPanel
{
public Contact_usPanel()
{
JButton b1=new JButton("vivek vannam :-8446914712");
add(b1);
JButton b2=new JButton("Guruprasad Rangam :-8888660591");
add(b2);
JButton b3=new JButton("Anand Narole :-8862062137");
add(b3);
JButton b4=new JButton("prem chalmeti :-8180011318");
add(b4);
setLayout(null);
b1.setBounds(450,450,250,40);
b2.setBounds(450,350,250,40);
b3.setBounds(450,250,250,40);
b4.setBounds(450,150,250,40);
}
}