Browse Source

Merge remote-tracking branch 'origin/develop' into develop

remotes/origin/develop
fdai6499 2 years ago
parent
commit
d9a76e75ba
  1. 23
      src/main/java/src/TasksFrame.java

23
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

Loading…
Cancel
Save