From ada2f09bcebcadfc354e552ec67595aa02be9fe6 Mon Sep 17 00:00:00 2001 From: fdai6040 Date: Thu, 2 Feb 2023 16:20:36 +0100 Subject: [PATCH] Font style changed to bold --- src/main/java/src/TasksFrame.java | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index 6d07a72..bc5a6ef 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -97,17 +97,17 @@ public class TasksFrame extends JFrame { JTextField a = new JTextField(); a.setBounds(10, 40, 30, 20); a.setVisible(true); - a.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + a.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField b = new JTextField(); b.setBounds(50, 40, 30, 20); b.setVisible(true); - b.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + b.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField c = new JTextField(); c.setBounds(90, 40, 30, 20); c.setVisible(true); - c.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + c.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel jLabel = new JLabel(); jLabel.setVisible(true); @@ -162,12 +162,12 @@ public class TasksFrame extends JFrame { JTextField a = new JTextField(); a.setBounds(10, 40, 30, 20); a.setVisible(true); - a.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + a.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField b = new JTextField(); b.setBounds(50, 40, 30, 20); b.setVisible(true); - b.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + b.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel jLabel = new JLabel(); jLabel.setVisible(true); @@ -213,7 +213,7 @@ public class TasksFrame extends JFrame { JTextField jTextField = new JTextField(); jTextField.setVisible(true); jTextField.setBounds(10, 40, 30, 20); - jTextField.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + jTextField.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel jLabel = new JLabel(); jLabel.setVisible(true); @@ -261,7 +261,7 @@ public class TasksFrame extends JFrame { JTextField jTextField = new JTextField(); jTextField.setVisible(true); jTextField.setBounds( 10, 40, 30, 20); - jTextField.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + jTextField.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); @@ -345,7 +345,7 @@ public class TasksFrame extends JFrame { JTextField a = new JTextField(); a.setBounds(10, 50, 30, 20); a.setVisible(true); - a.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + a.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel sum = new JLabel(); sum.setBounds(40, 50, 10, 20); @@ -355,7 +355,7 @@ public class TasksFrame extends JFrame { JTextField b = new JTextField(); b.setBounds(50, 50, 30, 20); b.setVisible(true); - b.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + b.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel equal = new JLabel(); equal.setBounds(90, 50, 30, 20); @@ -365,7 +365,7 @@ public class TasksFrame extends JFrame { JTextField result = new JTextField(); result.setBounds(100, 50, 40, 20); result.setVisible(true); - result.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + result.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JButton add = new JButton("add"); add.setBounds(10, 90, 100, 30); @@ -405,7 +405,7 @@ public class TasksFrame extends JFrame { JTextField x = new JTextField(); x.setBounds(10,50,30,20); x.setVisible(true); - x.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + x.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel diff = new JLabel(); diff.setBounds(40, 50, 10, 20); @@ -415,7 +415,7 @@ public class TasksFrame extends JFrame { JTextField y = new JTextField(); y.setBounds(50,50,30,20); y.setVisible(true); - y.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + y.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JLabel equal = new JLabel(); equal.setBounds(90, 50, 30, 20); @@ -425,7 +425,7 @@ public class TasksFrame extends JFrame { JTextField result = new JTextField(); result.setBounds(100,50,40,20); result.setVisible(true); - result.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + result.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JButton difference = new JButton("Difference"); difference.setBounds(10,90,100,30); @@ -475,12 +475,12 @@ public class TasksFrame extends JFrame { JTextField a = new JTextField(); a.setVisible(true); a.setBounds(50,25,30,20); - a.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + a.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField b = new JTextField(); b.setVisible(true); b.setBounds(50,45,30,20); - b.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + b.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JButton area = new JButton("Calculate area"); area.setVisible(true); @@ -491,7 +491,7 @@ public class TasksFrame extends JFrame { JTextField areaRes = new JTextField(); areaRes.setBounds(200,80,30,20 ); areaRes.setVisible(true); - areaRes.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + areaRes.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); area.addActionListener(new ActionListener() { @Override @@ -521,7 +521,7 @@ public class TasksFrame extends JFrame { JTextField perimeterRes = new JTextField(); perimeterRes.setBounds(200,110,30,20 ); perimeterRes.setVisible(true); - perimeterRes.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + perimeterRes.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); perimeter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -560,17 +560,17 @@ public class TasksFrame extends JFrame { JTextField a = new JTextField(); a.setBounds(10, 50, 30, 20); a.setVisible(true); - a.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + a.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField b = new JTextField(); b.setBounds(50, 50, 30, 20); b.setVisible(true); - b.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + b.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JTextField result = new JTextField(); result.setBounds(100, 50, 40, 20); result.setVisible(true); - result.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + result.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); JButton sumFromTo = new JButton("calculate"); sumFromTo.setBounds(10,90,100,30); @@ -615,7 +615,7 @@ public class TasksFrame extends JFrame { JTextField jTextField = new JTextField(); jTextField.setVisible(true); jTextField.setBounds(3, 40, 250, 30); - jTextField.setFont(new java.awt.Font("Arial", Font.ROMAN_BASELINE | Font.BOLD, 12)); + jTextField.setFont(new java.awt.Font("Arial", Font.BOLD, 12)); for (int i = from; i < to; i++) { int e = i % 5;