-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm.java
More file actions
21 lines (21 loc) · 873 Bytes
/
Copy pathm.java
File metadata and controls
21 lines (21 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package star;
import javax.swing.*;
import java.awt.*;
class m{
static int scx = 1920, scy = 1080, dx = 800, dy = 800;
// Jframe
static JFrame jf = new JFrame("Star Catcher!");
static Insets jfi = new Insets(0,0,0,780);
// Our Layered Pane, soon to be our Content Pane
static JLayeredPane jl = new JLayeredPane();
// Component being added
static catcher catcher = new catcher();
public static void main(String[] arguments){
jf.setSize(dx,dy);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setBackground(Color.BLACK);
jf.setContentPane(jl);
jf.add(catcher);
jf.setVisible(true);
}
}