Files
oop/finalproject/Question11/View.java
2022-05-24 23:51:13 +08:00

19 lines
371 B
Java

import javax.swing.JFrame;
public abstract class View<T extends Controller> extends JFrame implements ModelListener {
protected Library m;
protected T c;
public View(Library m, T c) {
this.m = m;
this.c = c;
m.addListener(this);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLocationRelativeTo(null);
}
public abstract void update();
}