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

Loading…
Cancel
Save