Cs PDF
Cs PDF
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
obj.setSize(300, 400);
obj.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
obj.setLayout(new FlowLayout());
obj.setVisible(true);
// rt.setEnabled(false);
Add.addActionListener(new AbstractAction() {
double f=Double.parseDouble(ft.getText());
double s=Double.parseDouble(st.getText());
double r=f+s;
rt.setText(String.valueOf(r)); } });
clear.addActionListener(new AbstractAction() {
} });
Ex.addActionListener(new AbstractAction() {
} });
}}