lab10
This commit is contained in:
17
lab/lab10/Question1/MyFrame.java
Normal file
17
lab/lab10/Question1/MyFrame.java
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Author: CHEN Yongyuan (Walter) from OOP(1007)
|
||||
* Date: 2022-05-01
|
||||
* Description: This is the Main Frame class.
|
||||
*/
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
public class MyFrame extends JFrame {
|
||||
public MyFrame() {
|
||||
setSize(400, 300);
|
||||
setTitle("MyFrame");
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setLocationRelativeTo(null);
|
||||
setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user