rendered paste bodyimport javax.swing.*;import java.awt.event.ActionListener;import java.awt.event.ActionEvent;public class BankAccountGUI { private JTextField addField; private JButton addButton; private JTabbedPane tabbedPane1; private JPanel panel1; private JTextField balanceField; private JTextField removeField; private JButton checkBalanceButton; private JButton removeButton; double balance = 0; public BankAccountGUI() { addButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { balance += Double.valueOf(addField.getText()).doubleValue(); } }); checkBalanceButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { balanceField.setText(Double.toString(balance)); } }); removeButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { balance -= Double.valueOf(removeField.getText()).doubleValue(); } }); } public static void main(String[] args) { JFrame frame = new JFrame("BankAccountGUI"); frame.setContentPane(new BankAccountGUI().panel1); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); }}/*Exception in thread "main" java.lang.NullPointerException at BankAccountGUI.<init>(BankAccountGUI.java:18) at BankAccountGUI.main(BankAccountGUI.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)*/