Write a program to create a
java bean.
package beans;
import java.awt.*;
import java.applet.*;
import javax.swing.JButton;
import java.io.Serializable;
/**
*
* @author
administration
*/
public class Beans extends JButton implements Serializable
{
/**
* @param
args the command line arguments
*/
//public
static void main(String[] args)
//public void paint(Graphics g)
public
void init()
{
Label b=new Label("submitted");
add(b);
}
}
// public void init()