コード例 #1
0
 public void actionPerformed(ActionEvent e) {
   calc = (Calculator) e.getSource();
   antwoordVeld.setText(
       "<["
           + calc.getBase().getName()
           + ","
           + calc.getFormat().getName()
           + ","
           + calc.firstOperand()
           + ", "
           + calc.secondOperand()
           + "] >");
 }
コード例 #2
0
 public CalculatorView() {
   this.add(antwoordVeld);
   antwoordVeld.setText("<[dec, fixed, 0.0, 0.0]>");
 }