package com.company;
import javax.swing.JFrame;
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import java.awt.event.*;
import javax.swing.JCheckBox;
import javax.swing.text.Position;
import java.util.Random;
public class Main {
public static void main(String[] args) {
String name=JOptionPane.showInputDialog("What is your name? ");
String imput=JOptionPane.showInputDialog("How old are you? ");
int age=Integer.parseInt(imput);
System.out.println("Hello"+name);
System.out.println("Next year, you will be"+(age+1));
JFrame myframe = new JFrame();
myframe.setVisible(true);
myframe.setTitle("FINAL EXAM");
myframe.setSize(1000, 1000);
Container mycontainer = myframe.getContentPane();
Container colorcontain = myframe.getContentPane();
colorcontain.setBackground(Color.pink);
mycontainer.setLayout(null);
JLabel mylabel = new JLabel("WELCOME TO WATER DISTRICT BILLING NOTICE");
myframe.add(mylabel);
mylabel.setBounds(300, 1, 500, 100);
Font font = new Font("arial", Font.BOLD, 20);
mylabel.setFont(font);
JLabel mylabel1 = new JLabel("Transaction Details ");
myframe.add(mylabel1);
mylabel1.setBounds(50, 1, 300, 250);
Font font1 = new Font("arial", Font.BOLD, 20);
mylabel1.setFont(font1);
JLabel mylabel2 = new JLabel("Transaction Type ");
myframe.add(mylabel2);
mylabel2.setBounds(50, 1, 300, 440);
Font font2 = new Font("arial", Font.BOLD, 20);
mylabel2.setFont(font2);
JLabel mylabel3 = new JLabel("Enter Account Number ");
myframe.add(mylabel3);
mylabel3.setBounds(50, 1, 300, 530);
Font font3 = new Font("arial", Font.BOLD, 20);
mylabel3.setFont(font3);
JLabel mylabel4 = new JLabel("Enter Customers Name ");
myframe.add(mylabel4);
mylabel4.setBounds(50, 1, 300, 680);
Font font4 = new Font("arial", Font.BOLD, 20);
mylabel4.setFont(font4);
JLabel mylabel5 = new JLabel("Payment Summary ");
myframe.add(mylabel5);
mylabel5.setBounds(50, 1, 300, 830);
Font font5 = new Font("arial", Font.BOLD, 20);
mylabel5.setFont(font5);
JLabel mylabel6 = new JLabel("Transaction amount in PESO ");
myframe.add(mylabel6);
mylabel6.setBounds(50, 1, 300, 900);
Font font6 = new Font("arial", Font.BOLD, 20);
mylabel6.setFont(font6);
JLabel mylabel7 = new JLabel("Transaction Fee 50pesos ");
myframe.add(mylabel7);
mylabel7.setBounds(50, 1, 300, 1050);
Font font7 = new Font("arial", Font.BOLD, 20);
mylabel7.setFont(font7);
JLabel mylabel8 = new JLabel("Customer Paid Cash ");
myframe.add(mylabel8);
mylabel8.setBounds(50, 1, 300, 1130);
Font font8 = new Font("arial", Font.BOLD, 20);
mylabel8.setFont(font8);
JLabel mylabel9 = new JLabel("Customer Change: ");
myframe.add(mylabel9);
mylabel9.setBounds(50, 1, 300, 1190);
Font font9 = new Font("arial", Font.BOLD, 20);
mylabel9.setFont(font9);
JLabel mylabel10 = new JLabel("✓ I Certify That I Am Atleast 18 Years Old " +
"Above And Have Read And Agree To The Years And Condition ");
myframe.add(mylabel10);
mylabel10.setBounds(50, 1, 1000, 1250);
Font font10 = new Font("arial", Font.BOLD, 20);
mylabel10.setFont(font10);
myframe.setVisible(true);
JTextField text1, text2, text3, text4, text5, text6, text7, text8;
text1=new JTextField("Merchart Name ");
text1.setBounds(50,150, 200, 30);
text2=new JTextField("");
text2.setBounds(50, 280, 200, 30);
text3=new JTextField("Username");
text3.setBounds(50, 355, 200, 30);
text4=new JTextField("First Name");
text4.setBounds(300, 355, 200, 30);
text5=new JTextField("Middle Name");
text5.setBounds(550, 355, 200, 30);
text6=new JTextField("");
text6.setBounds(50, 470, 50, 30);
text7=new JTextField("");
text7.setBounds(250, 550, 70, 30);
JButton mybutton = new JButton("Submit");
mybutton.setBounds(50, 650, 90, 30);
JButton mybutton1 = new JButton("Cancel");
mybutton1.setBounds(150, 650, 90, 30);
myframe.add(mybutton);
myframe.add(mybutton1);
myframe.add(text1);
myframe.add(text2);
myframe.add(text3);
myframe.add(text4);
myframe.add(text5);
myframe.add(text6);
myframe.add(text7);
myframe.setSize(400, 400);
myframe.setLayout(null);
}
}