1st
Never
import java.awt.*;import java.awt.event.*; import javax.swing.*; import javax.swing.event.*;class A extends JFrame implements ActionListener { JLabel l1, l2, l3;JTextField tf1, tf2, tf3; JButton b1;12A() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLayout(new FlowLayout();l1 = new JLabel("Welcome"); setSize(800, 400);l1 = new JLabel("Enter Number1"); add(l1);tf1 = new JTextField(10); add(tf1);l2 = new JLabel("Enter Number2"); add(l2);tf2 = new JTextField(10); add(tf2);l3 = new JLabel("Result"); add(l3);tf3 = new JTextField(10); add(tf3);b1 = new JButton("Divide"); add(b1);b1.addActionListener(this);setVisible(true);}public void actionPerformed(ActionEvent ae) {try {int a = Integer.parseInt(tf1.getText()); int b = Integer.parseInt(tf2.getText()); if(b==0)throw new ArithmeticException(" Divide by Zero Error"); float c = (float) a / b;tf3.setText(String.valueOf(c));} catch (NumberFormatException ex) {13JOptionPane.showMessageDialog(this,ex.getMessage()); }catch (ArithmeticException ex) { JOptionPane.showMessageDialog(this, ex.getMessage());}}}public class JavaApplication{ public static void main(String[] args) { A a = new A();}}
Raw Text
-
gyftdr sesdfg cdfgghj dxf
4 min ago
-
Licking Her Sweet Pussy And Put Thick Cock Inside! 4K
4 min ago
-
CP💎 FOLDER 💯📁 R@PED😈😏 LITTLE GIRL🍆👧💦💦
7 min ago
-
MenoPhix FAKE Hype Busted [Consumer Reports] Is MenoPhix afe?
18 min ago
-
What Can The Music Industry Teach You About Bloom Cbd Gummies
26 min ago
-
Less Reading More Sucking & Fucking feat. The Nerd Harley King - Exxxtra Small
33 min ago
-
Adult Telegram Channels
49 min ago
-
5 FitsPresso Tips for Swift Weight Loss
52 min ago
-
What to anticipate with the consumption of Bloom CBD Gummies?
53 min ago
-
I’m obsessed with anal, that's what makes me happy
1 hour ago