UNB/ CS/ David Bremner/ teaching/ java/ NumberPadTest.java
public class NumberPadTest extends DBFrame implements NumberPadClient{
    
    private final String labels[][]=
            { {"7","8","9"}, 
              {"4","5","6"},
              {"1","2","3"},
              {"0",".", "Enter"},
              {"+","-","*"},
              {"/","clear","quit" }};

    public void numberPadCallback(String text){
        System.out.println(text);
    }
    
    public NumberPadTest(){
        super(300,100);
        NumberPad pad=new NumberPad(labels);
        pad.setClient(this);

        this.getContentPane().add(pad);
        pack();
        this.setVisible(true);
    }

    public static void main(String []args){
        
        NumberPadTest k=new NumberPadTest();
        

    }
        
}
//