FileDocCategorySizeDatePackage
Supermarket2.javaAPI DocExample6582Wed Nov 14 17:00:54 GMT 2001None

Supermarket2

public class Supermarket2 extends Applet

Fields Summary
private Controller
controlObj
private Panel
marketPan
private Panel
conPan
private Panel
tillPan
Constructors Summary
public Supermarket2()

		//constructor of Supermarket2 applet
	
Methods Summary
public voidinit()

    marketPan = new Panel( );
  	marketPan.setLayout(new GridLayout(2,1));//two rows, one column
  	add(marketPan); //attach to applet surface

  	conPan = new Panel( );//panel to diplay controller
  	conPan.setBackground(new Color(175,175,175));
  	marketPan.add(conPan); //display on market panel

 

		controlObj = new Controller(conPan);
		
    Till till1Obj = new Till(controlObj,"Denise");
    add(till1Obj.getTillPanel());

    Till till2Obj = new Till(controlObj,"Spotty Bob");
    add(till2Obj.getTillPanel());