Defining the Applet
public class AccountApplet extends Applet {
/* You need to specify layout manager as flow is the default */
setLayout( new BorderLayout());
ButtonPanel buttonPanel = new ButtonPanel(this);
add("North", buttonPanel);
/* Next set up the text panel */
TextPanel textPanel = new TextPanel(this);
add("Center", textPanel);