-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMaxButton.java
More file actions
38 lines (35 loc) · 922 Bytes
/
Copy pathMaxButton.java
File metadata and controls
38 lines (35 loc) · 922 Bytes
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
/******************************************
*
* Official Name: Maxwell Burggraf
*
* Nickname: Max
*
* E-mail: mlburggr@syr.edu
*
* Final Project: 2-player checkers game
*
* Compiler: drJava on a pc
*
* Date: Dec. 2, 2013
*
*******************************************/
import javax.swing.*;
import java.awt.*;
//CL
public class MaxButton extends JButton
{
Color color;
public MaxButton()
{
super();
}
public void player(Color c)
{
color = c;
setForeground(c);
}
public Color getColor()
{
return color;
}
}