-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGuiAddition.java
More file actions
33 lines (33 loc) · 994 Bytes
/
GuiAddition.java
File metadata and controls
33 lines (33 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//package advJava;
//import java.awt.*;
//import java.awt.event.*;
//
//
//class GuiAddition extends Frame implements ActionListener{
// {
// Button b1, b2;
// Label l1, l2, l3;
// TextField t1, t2, t3;
//// GuiAddition(){
// setSize(200, 200);
// setVisible(true);
// b1 = new Button("Add");
// b2 = new Button("close");
// t1 = new TextField(20);m
// t2 = new TextField(20);
// t3 = new TextField(20);
// l1 = new Label("Enter First Number");
// l2 = new Label("Enter Second Number");
// l3 = new Label("Result");
// setLayout(new FlowLayout());
// add(l1);add(l2);add(l3);add(t1);add(t2);add(t3);add(b1);add(b2);
// b1.addActionListener(this);
// b2.addActionListener(this);
// }
// public void actionPerformed(ActionEvent e){
// if (ae.getSource == b1){
// int a Integer.ParseInt(t1.getInteger)
// }
// }
//}
//