
consider my case and provide me solutions: import java.awt.; import java.awt.event.; class Table1 extends Frame implements ActionListener{ TextField tf1,tf2,tf3;
Table1(){
Label l1=new Label("WELCOME TO TABLE WIZARD");
l1.setBounds(100,10,200,30);
Label l2=new Label("Enter the value to get its Table");
l2.setBounds(100,50,200,20);
tf1=new TextField();
tf1.setBounds(100,80,200,20);
Label l3=new Label("Enter the till you want the table");
l3.setBounds(100,110,200,20);
tf2=new TextField();
tf2.setBounds(100,140,200,20);
Button b=new Button("click me");
b.setBounds(310,140,60,20);
Label l4=new Label("The Result is:");
l4.setBounds(100,170,200,20);
tf3=new TextField();
tf3.setBounds(100,200,200,200);
add(b);
b.addActionListener(this);
add(l1);
add(l2);
add(l3);
add(l4);
add(tf1);
add(tf2);
add(tf3);
setSize(400,600);
setLayout(null);
setVisible(true);
}
public void actionPerformed(ActionEvent a)
{
String s1=tf1.getText();
String s2=tf2.getText();
int a1=Integer.parseInt(s1);
int a2=Integer.parseInt(s2);
int c[]=new int[10];
for(int i=1;i<=a2;i++)
c[i]=a1*i;
String s3="",s4="",s5="";
s3=String.valueOf(a1);
for(int i=1;i<=a2;i++)
{
int a3=0;
s4=String.valueOf(i);
a3=c[i];
s5=s5+String.valueOf(a3);
tf3.setText("\n");
tf3.setText(s3+"X"+s4+"="+s5+"\n");
}
}
public static void main(String args[])
{
new Table1();
}
}

The given code accepts the two integer values from the user and display the multiplication table on to the textarea. Using the append() method of textarea, the value is easily added to the textarea.
import java.awt.*;
import java.awt.event.*;
class Table1 extends Frame implements ActionListener{
TextField tf1,tf2;
TextArea area;
Table1(){
Label l1=new Label("WELCOME TO TABLE WIZARD");
l1.setBounds(100,10,200,30);
Label l2=new Label("Enter the value to get its Table");
l2.setBounds(100,50,200,20);
tf1=new TextField();
tf1.setBounds(100,80,200,20);
Label l3=new Label("Enter the till you want the table");
l3.setBounds(100,110,200,20);
tf2=new TextField();
tf2.setBounds(100,140,200,20);
Button b=new Button("click me");
b.setBounds(310,140,60,20);
Label l4=new Label("The Result is:");
l4.setBounds(100,170,200,20);
area=new TextArea(10,20);
area.setBounds(100,200,200,200);
add(b);
b.addActionListener(this);
add(l1);
add(l2);
add(l3);
add(l4);
add(tf1);
add(tf2);
add(area);
setSize(400,600);
setLayout(null);
setVisible(true);
}
public void actionPerformed(ActionEvent a) {
String s1=tf1.getText();
String s2=tf2.getText();
int a1=Integer.parseInt(s1);
int a2=Integer.parseInt(s2);
for(int i=1;i<=a2;i++) {
System.out.println(a1+"*"+i+"="+(a1*i));
area.append(a1+"*"+i+"="+(a1*i));
area.append("\n");
}
}
public static void main(String args[]) {
new Table1();
}
}

Thank you very much sir for this answer. actually i am developing the javap tool, in that this concept is applied. dear sir if you have any programs or like simple application source code that can be helpful for a java beginner please send me by mail.