/
InBtwn1_HighScore.java
executable file
·68 lines (57 loc) · 1.62 KB
/
InBtwn1_HighScore.java
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* All Attributes of the Instructions button
*
* @author (Pavithran Pathmarajah)
* @version (2014 June 9)
*/
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.*;
import javax.swing.*;
public class InBtwn1_HighScore extends InBtwn_Buttons implements MouseListener
{
int width;
int height;
InBetweenMenu window;
public InBtwn1_HighScore (int w, int h,InBetweenMenu ww)
{
super("HIGHSCORES");
window=ww;
width=w;
height=h;
setFocusPainted(false);//remove ugly highlight
setFont(new Font("Comic Sans MS", Font.BOLD, 14));
setBackground(new Color(0x34536C)); //button
setForeground(new Color(0x947D68));//text
setOpaque(true);
setBounds(121,height-60, 145, 50);
addMouseListener(this);
}
public void onDestroy()
{
this.removeMouseListener(this);
}
public void mouseClicked(MouseEvent e)
{
}
public void mouseEntered(MouseEvent e)
{
window.showScore();
setBounds(115,height-65, 157, 60);
setBackground(new Color(0x977E69));//background
setForeground(new Color(0x34536C));//text
}
public void mouseExited(MouseEvent e)
{
window.standardWin();
setBounds(121,height-60, 145, 50);
setBackground(new Color(0x34536C)); //button
setForeground(new Color(0x947D68));//text
}
public void mousePressed(MouseEvent e)
{
}
public void mouseReleased(MouseEvent e)
{
}
}