import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
/*
<applet code="ResumeBuilder.class" height=600 width=500>
</applet>
*/
public class ResumeBuilder extends Applet implements ActionListener
{
Button b1,b2;
Label l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15;
TextField tf1,tf2,tf3,tf4,tf5,tf6,tf7,tf8,tf9,tf10;
TextArea ta1,ta2,ta3,ta4;
Panel p1,p2;
String str1,str2,str3,str4,str5,str6,str7,str8,str9,str10,str11,str12,str13,str14;
public void init()
{
Color bg=new Color(242,189,125);
Color fg=new Color(162,65,44);
Color tt=new Color(255,82,0);
setBackground(bg);
setForeground(fg);
Font f1=new Font("Courier",Font.BOLD,30);
p1=new Panel(new GridLayout(14,2,15,15));
p2=new Panel(new FlowLayout(FlowLayout.CENTER));
setLayout(new BorderLayout());
l1=new Label("Resume Builder",Label.CENTER);
l1.setFont(f1);
l1.setForeground(tt);
l2=new Label("Name:");
l3=new Label("Address:");
l4=new Label("Telephone No.");
l5=new Label("E-mail:");
l6=new Label("Date of Birth:");
l7=new Label("HSC passing year:");
l8=new Label("HSC Board:");
l9=new Label("HSC result:");
l10=new Label("College passing year:");
l11=new Label("University name:");
l12=new Label("CGPA:");
l13=new Label("Achievements:");
l14=new Label("Area of Interest:");
l15=new Label("Skill & Hobby:");
b1=new Button("Create");
b2=new Button("View");
tf1=new TextField(20);
tf2=new TextField(20);
tf3=new TextField(20);
tf4=new TextField(20);
tf5=new TextField(20);
tf6=new TextField(20);
tf7=new TextField(20);
tf8=new TextField(20);
tf9=new TextField(20);
tf10=new TextField(20);
ta1=new TextArea(1,20);
ta2=new TextArea(1,20);
ta3=new TextArea(1,20);
ta4=new TextArea(1,20);
add("North",l1);
add("Center",p1);
add("South",p2);
p1.add(l2);
p1.add(tf1);
p1.add(l3);
p1.add(ta1);
p1.add(l4);
p1.add(tf2);
p1.add(l5);
p1.add(tf3);
p1.add(l6);
p1.add(tf4);
p1.add(l7);
p1.add(tf5);
p1.add(l8);
p1.add(tf6);
p1.add(l9);
p1.add(tf7);
p1.add(l10);
p1.add(tf8);
p1.add(l11);
p1.add(tf9);
p1.add(l12);
p1.add(tf10);
p1.add(l13);
p1.add(ta2);
p1.add(l14);
p1.add(ta3);
p1.add(l15);
p1.add(ta4);
p2.add(b1);
p2.add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
}
public void transfer()
{
str1=tf1.getText();
str2=ta1.getText();
str3=tf2.getText();
str4=tf3.getText();
str5=tf4.getText();
str6=tf5.getText();
str7=tf6.getText();
str8=tf7.getText();
str9=tf8.getText();
str10=tf9.getText();
str11=tf10.getText();
str12=ta2.getText();
str13=ta3.getText();
str14=ta4.getText();
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==b1)
{
this.transfer();
try
{
File file=new File("Resume.doc");
if(file.exists()==true)
{
file.delete();
}
file.createNewFile();
FileWriter fw1=new FileWriter("Resume.doc",true);
fw1.write("Name:"+str1+"\n\n");
fw1.write("Address:"+str2+"\n\n");
fw1.write("Telephone No.:"+str3+"\n\n");
fw1.write("E-mail:"+str4+"\n\n");
fw1.write("Date of Birth:"+str5+"\n\n");
fw1.write("HSC passing year:"+str6+"\n\n");
fw1.write("HSC Board:"+str7+"\n\n");
fw1.write("HSC result:"+str8+"\n\n");
fw1.write("College passing year:"+str9+"\n\n");
fw1.write("University name:"+str10+"\n\n");
fw1.write("CGPA:"+str11+"\n\n");
fw1.write("Achievements:"+str12+"\n\n");
fw1.write("Area of Interest:"+str13+"\n\n");
fw1.write("Skill & Hobby:"+str14);
fw1.close();
}
catch(Exception e)
{
}
}
else if(ae.getSource()==b2)
{
try
{
Process p=Runtime.getRuntime().exec("cmd /c start Resume.doc");
}
catch(Exception e)
{
}
}
}
}
import java.awt.*;
import java.awt.event.*;
import java.io.*;
/*
<applet code="ResumeBuilder.class" height=600 width=500>
</applet>
*/
public class ResumeBuilder extends Applet implements ActionListener
{
Button b1,b2;
Label l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15;
TextField tf1,tf2,tf3,tf4,tf5,tf6,tf7,tf8,tf9,tf10;
TextArea ta1,ta2,ta3,ta4;
Panel p1,p2;
String str1,str2,str3,str4,str5,str6,str7,str8,str9,str10,str11,str12,str13,str14;
public void init()
{
Color bg=new Color(242,189,125);
Color fg=new Color(162,65,44);
Color tt=new Color(255,82,0);
setBackground(bg);
setForeground(fg);
Font f1=new Font("Courier",Font.BOLD,30);
p1=new Panel(new GridLayout(14,2,15,15));
p2=new Panel(new FlowLayout(FlowLayout.CENTER));
setLayout(new BorderLayout());
l1=new Label("Resume Builder",Label.CENTER);
l1.setFont(f1);
l1.setForeground(tt);
l2=new Label("Name:");
l3=new Label("Address:");
l4=new Label("Telephone No.");
l5=new Label("E-mail:");
l6=new Label("Date of Birth:");
l7=new Label("HSC passing year:");
l8=new Label("HSC Board:");
l9=new Label("HSC result:");
l10=new Label("College passing year:");
l11=new Label("University name:");
l12=new Label("CGPA:");
l13=new Label("Achievements:");
l14=new Label("Area of Interest:");
l15=new Label("Skill & Hobby:");
b1=new Button("Create");
b2=new Button("View");
tf1=new TextField(20);
tf2=new TextField(20);
tf3=new TextField(20);
tf4=new TextField(20);
tf5=new TextField(20);
tf6=new TextField(20);
tf7=new TextField(20);
tf8=new TextField(20);
tf9=new TextField(20);
tf10=new TextField(20);
ta1=new TextArea(1,20);
ta2=new TextArea(1,20);
ta3=new TextArea(1,20);
ta4=new TextArea(1,20);
add("North",l1);
add("Center",p1);
add("South",p2);
p1.add(l2);
p1.add(tf1);
p1.add(l3);
p1.add(ta1);
p1.add(l4);
p1.add(tf2);
p1.add(l5);
p1.add(tf3);
p1.add(l6);
p1.add(tf4);
p1.add(l7);
p1.add(tf5);
p1.add(l8);
p1.add(tf6);
p1.add(l9);
p1.add(tf7);
p1.add(l10);
p1.add(tf8);
p1.add(l11);
p1.add(tf9);
p1.add(l12);
p1.add(tf10);
p1.add(l13);
p1.add(ta2);
p1.add(l14);
p1.add(ta3);
p1.add(l15);
p1.add(ta4);
p2.add(b1);
p2.add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
}
public void transfer()
{
str1=tf1.getText();
str2=ta1.getText();
str3=tf2.getText();
str4=tf3.getText();
str5=tf4.getText();
str6=tf5.getText();
str7=tf6.getText();
str8=tf7.getText();
str9=tf8.getText();
str10=tf9.getText();
str11=tf10.getText();
str12=ta2.getText();
str13=ta3.getText();
str14=ta4.getText();
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==b1)
{
this.transfer();
try
{
File file=new File("Resume.doc");
if(file.exists()==true)
{
file.delete();
}
file.createNewFile();
FileWriter fw1=new FileWriter("Resume.doc",true);
fw1.write("Name:"+str1+"\n\n");
fw1.write("Address:"+str2+"\n\n");
fw1.write("Telephone No.:"+str3+"\n\n");
fw1.write("E-mail:"+str4+"\n\n");
fw1.write("Date of Birth:"+str5+"\n\n");
fw1.write("HSC passing year:"+str6+"\n\n");
fw1.write("HSC Board:"+str7+"\n\n");
fw1.write("HSC result:"+str8+"\n\n");
fw1.write("College passing year:"+str9+"\n\n");
fw1.write("University name:"+str10+"\n\n");
fw1.write("CGPA:"+str11+"\n\n");
fw1.write("Achievements:"+str12+"\n\n");
fw1.write("Area of Interest:"+str13+"\n\n");
fw1.write("Skill & Hobby:"+str14);
fw1.close();
}
catch(Exception e)
{
}
}
else if(ae.getSource()==b2)
{
try
{
Process p=Runtime.getRuntime().exec("cmd /c start Resume.doc");
}
catch(Exception e)
{
}
}
}
}
No comments:
Post a Comment