diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index 0c367fd..b2de3c1 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -7,6 +7,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.LinkedList; +import java.awt.Color; public class TasksFrame extends JFrame { @@ -90,6 +91,8 @@ public class TasksFrame extends JFrame { JButton button = new JButton("round sum"); button.setVisible(true); button.setBounds(10, 65, 100, 30); + button.setForeground(Color.WHITE); + button.setBackground(Color.BLUE); JTextField a = new JTextField(); a.setBounds(10, 40, 30, 20); @@ -150,6 +153,8 @@ public class TasksFrame extends JFrame { JButton button = new JButton("kgV"); button.setVisible(true); button.setBounds(10, 65, 100, 30); + button.setForeground(Color.WHITE); + button.setBackground(Color.BLUE); JTextField a = new JTextField(); a.setBounds(10, 40, 30, 20); @@ -195,6 +200,8 @@ public class TasksFrame extends JFrame { JButton button = new JButton("Quersumme"); button.setVisible(true); button.setBounds(10, 65, 100, 30); + button.setForeground(Color.WHITE); + button.setBackground(Color.BLUE); JTextField jTextField = new JTextField(); jTextField.setVisible(true); @@ -240,6 +247,8 @@ public class TasksFrame extends JFrame { JButton button = new JButton("calc Phi"); button.setVisible(true); button.setBounds(10, 65, 100, 30); + button.setForeground(Color.WHITE); + button.setBackground(Color.BLUE); JTextField jTextField = new JTextField(); jTextField.setVisible(true); @@ -301,9 +310,11 @@ public class TasksFrame extends JFrame { jLabel.setBounds(20, 80, 150, 30); jLabel.setVisible(true); - Button button = new Button("Say Hello World"); + JButton button = new JButton("Say Hello World"); button.setBounds(10, 50, 150, 30); button.setVisible(true); + button.setForeground(Color.WHITE); + button.setBackground(Color.BLUE); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -345,6 +356,8 @@ public class TasksFrame extends JFrame { JButton add = new JButton("add"); add.setBounds(10, 90, 100, 30); add.setVisible(true); + add.setForeground(Color.WHITE); + add.setBackground(Color.BLUE); add.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -400,6 +413,8 @@ public class TasksFrame extends JFrame { JButton difference = new JButton("Difference"); difference.setBounds(10,90,100,30); difference.setVisible(true); + difference.setForeground(Color.WHITE); + difference.setBackground(Color.BLUE); difference.addActionListener(new ActionListener() { @Override @@ -451,6 +466,8 @@ public class TasksFrame extends JFrame { JButton area = new JButton("Calculate area"); area.setVisible(true); area.setBounds(0, 80, 180,30); + area.setForeground(Color.WHITE); + area.setBackground(Color.BLUE); JTextField areaRes = new JTextField(); areaRes.setBounds(200,80,30,20 ); @@ -478,6 +495,8 @@ public class TasksFrame extends JFrame { JButton perimeter = new JButton("Calculate perimeter"); perimeter.setVisible(true); perimeter.setBounds(0, 110, 180,30); + perimeter.setForeground(Color.WHITE); + perimeter.setBackground(Color.BLUE); JTextField perimeterRes = new JTextField(); perimeterRes.setBounds(200,110,30,20 ); @@ -532,6 +551,8 @@ public class TasksFrame extends JFrame { JButton sumFromTo = new JButton("calculate"); sumFromTo.setBounds(10,90,100,30); sumFromTo.setVisible(true); + sumFromTo.setForeground(Color.WHITE); + sumFromTo.setBackground(Color.BLUE); sumFromTo.addActionListener(new ActionListener() { @Override