-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonConstants.java
29 lines (20 loc) · 1010 Bytes
/
CommonConstants.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
import java.awt.Color; //for add colors
public class CommonConstants {
//App setting
public static final int[] APP_S = {400, 600};
//DisplayField setting
public static final int TEXTFIELD_F = 42;//Font size
public static final int[] DISPLAY = {10, 80};
//Button setting
public static final int BUTTON_R = 5;//ROWS
public static final int BUTTON_C = 4;//COLUMNS
public static final int BUTTON_T = 20;//TOTAL BUTTONS
public static final int BUTTON_F = 30;//ROWS
public static final int BUTTON_H = 5;//ROWS
public static final int BUTTON_V = 5;//COLUMNS
public static final Color OPERATOR_BUTTON_COLOR = new Color(000);
public static final Color OPERATOR_BUTTONTEXT_COLOR = new Color(0xFCFC03);
public static final Color CLEAR_BUTTON_COLOR = new Color(0xFD0419);
public static final Color NUMBER_BUTTON_COLOR = new Color(0xFFFFFF);
public static final Color NUMBER_BUTTONTEXT_COLOR = new Color(0x0D0C0C);
}