Professional Documents
Culture Documents
Regno:20MIS0282
Name:Harishkumar.s
Code
import javax.swing.*;
import java.awt.AWTEvent;
import java.awt.*;
import java.io.IOException;
t1.add(f);
b.add(f);
f.setVisible(true);
f.setLayout(null);
f.setSize(600,700);
b.addActionListener(new ActionListener(){
public void action performed(ActionEvent e){
String s=t1.getText();
if(s.isEmpty()){
throws{
Ioexception(exception ex);
system.out.println("strig not entered");
}
}
while(s.length()/2==0){
}
}
});
}
}