Code:

import java.awt.FlowLayout;
import javax.swing.JApplet;
import javax.swing.JTextField;

 
public class StatusExample extends JApplet{
       
        public void init(){
               
                
                this.getContentPane().setLayout(new FlowLayout());
 
               
                JTextField field123 = new JTextField("Disable Enable",20);
               
               
                field123.setEnabled(false);
               
                
               
                add(field123);
        }
}