Skip to content

Commit e253ab1

Browse files
committed
Fixed bug where foreground color for buttons was not set
1 parent 7017a6e commit e253ab1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>navjot.sgpaCalculatorGUI</groupId>
66
<artifactId>SGPACalculatorGUI</artifactId>
7-
<version>1.0</version>
7+
<version>1.1</version>
88
<packaging>jar</packaging>
99

1010
<name>SGPACalculatorGUI</name>

src/main/java/navjot/sgpaCalculatorGUI/gui/GUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ private void initializeTextFieldAndButton() {
6666
submit.addActionListener(this::submitButtonClicked);
6767
submit.setFont(DEFAULT_TEXT_FONT);
6868
submit.setBackground(COLOR_PALETTE[2]);
69+
submit.setForeground(COLOR_PALETTE[1]);
6970
submit.setBorder(BLACK_LINE_BORDER);
7071
submit.addKeyListener(new KeyAdapter() {
7172
@Override
@@ -137,6 +138,7 @@ private void initializeNewItems(int size) {
137138

138139
private void initializeCalculateSGPAButton() {
139140
calculateSGPA.setBackground(COLOR_PALETTE[2]);
141+
calculateSGPA.setForeground(COLOR_PALETTE[1]);
140142
calculateSGPA.setBorder(BLACK_LINE_BORDER);
141143
calculateSGPA.addActionListener(this::calculateSGPA);
142144
calculateSGPA.setFont(DEFAULT_TEXT_FONT);

0 commit comments

Comments
 (0)