@Override
public WaveTestModel getModel() {
return view.getModel();
}
};
WaveTestModel initialModel = new WaveTestModel(1, 1); // we don't know view size yet.
view = new WaveTestView(initialModel, pixelPerCell);
view.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
int rowIndex = e.getY() / pixelPerCell;