-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathResume.java
More file actions
54 lines (44 loc) · 1.01 KB
/
Resume.java
File metadata and controls
54 lines (44 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JFrame;
public class Resume
{
private Keyboard key;
private JFrame frame,frame1;
Resume(Keyboard key)
{
this.key=key;
frame1.setSize(200, 200);
}
public void minit(JFrame frame)
{
this.frame=frame;
}
public void drawscreen(Graphics g)
{
if(Game.menu==3)
{
try
{
BufferedImage image=ImageIO.read(Spritesheet.class.getResource("/bg1.png"));
g.drawImage(image,0,0,Game.getWindowWidth(), Game.getWindowHeight(), Color.gray, null); //Color.gray??????????????????
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public void update()
{
frame1.setVisible(true);
}
public void render(Screen screen)
{
}
}