public void actionPerformed(ActionEvent e) { d = (DobbelsteenModel) e.getSource(); waarde = d.getWaarde(); repaint(); }