i need to arrange my Knowledge
<p>I want to create a calculator in applet. But to do that I want to create 4 classes.</p>

<ol>
<li>that i will calculate the numbers</li>
<li>that i will made there the methods
for calculate that i will use in the
calculate class</li>
<li>I want to make  class that i will
design the calculator</li>
<li>that will be the calculator main.</li>
</ol>

<p>for now I made the design class.</p>

<p>Please, take a look:</p>

<pre><code>import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class Caldesinger extends BorderLayout 
{

 public Panel p1=new Panel();
 public Button[] arr=new Button[20];
 public String[] name = {"9","8","7","6","5","4","3","2","1","0","+","-","*","/",".","cos","sin","=","pow"};
 public Caldesinger()
 {
  for (int i = 0; i &lt; arr.length; i++) 
  {
   this.arr[i]=new Button(""+name[i]);
  }

 }

 public Panel caldesinge()
 {

  for (int i = 0; i &lt; arr.length; i++) 
  {
   this.arr[i].setBackground(Color.LIGHT_GRAY);
   this.arr[i].setForeground(Color.orange);
   this.p1.add(arr[i]);
  }
  this.p1.add(this.p1,BorderLayout.NORTH);
  return this.p1;
 }

}
</code></pre>

<p>I must know how the classes are conected
that i know the main is extends for the applet
and i must have at the main class an init method</p>

<p>i need your expertise that the 4 classes will work together
  needs help..</p>
