> I know that you say panel(add button) when you want
> to make a button but how would you make one from
> scratch
import javax.swing.*;
import java.awt.*;
public class test
{
public static void main(String args[])
{
JFrame jframe=new JFrame("JFrame For A JButton");
jframe.setSize(200,200);
JButton jbutton=new JButton("JButton");
jframe.setLayout(new FlowLayout(FlowLayout.CENTER));
jframe.add(jbutton);
jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jframe.setVisible(true);
}
}