diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index bd6d2d4..eeff70c 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -106,7 +106,6 @@ public class TasksFrame extends JFrame { JButton button = new JButton("calculate"); button.setVisible(true); button.setBounds(10, 65, 100, 30); - button.setForeground(Color.WHITE); button.setBackground(Color.BLUE); JLabel height = new JLabel("basis"); @@ -168,7 +167,7 @@ public class TasksFrame extends JFrame { String dateStr = String.format("%ta, %1$te. %1$tb %1$tY - %1$tT", System.currentTimeMillis()); JLabel label = new JLabel(dateStr); label.setVisible(true); - label.setBounds(10, 45, 160, 50); + label.setBounds(10, 45, 200, 50); Border border = BorderFactory.createLineBorder(Color.BLUE, 3); label.setBorder(border); label.setForeground(Color.BLACK); @@ -184,7 +183,6 @@ public class TasksFrame extends JFrame { JButton button = new JButton("BMI"); button.setVisible(true); button.setBounds(10, 65, 100, 30); - button.setForeground(Color.WHITE); button.setBackground(Color.BLUE); JLabel height = new JLabel("Height/m"); @@ -246,7 +244,6 @@ public class TasksFrame extends JFrame { JButton button = new JButton("calculate"); button.setVisible(true); button.setBounds(10, 65, 100, 30); - button.setForeground(Color.WHITE); button.setBackground(Color.BLUE); JTextField jTextField = new JTextField(); @@ -296,7 +293,6 @@ 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(); @@ -361,7 +357,6 @@ 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(); @@ -412,7 +407,6 @@ 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(); @@ -460,7 +454,6 @@ 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(); @@ -529,7 +522,6 @@ public class TasksFrame extends JFrame { Button button = new Button("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 @@ -575,7 +567,6 @@ 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 @@ -635,7 +626,6 @@ 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() { @@ -690,7 +680,6 @@ 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(); @@ -720,7 +709,6 @@ 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(); @@ -780,7 +768,6 @@ 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() {