18 lines
381 B
Java
18 lines
381 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
import java.awt.event.MouseAdapter;
|
||
|
|
||
|
public class View extends JFrame {
|
||
|
|
||
|
public View(){
|
||
|
setLocationRelativeTo(null);
|
||
|
setSize(new Dimension(1920, 1080));
|
||
|
CustomPanel p = new CustomPanel();
|
||
|
CustomListener c = new CustomListener();
|
||
|
|
||
|
|
||
|
add(p);
|
||
|
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||
|
}
|
||
|
}
|