这程序怎么了?为什么显示不出来
public class MyButton extends JButton{
MyButton()
{
JFrame e=new JFrame();
e.setSize(200,200);
JButton d=new JButton("fdfd");
e.getContentPane().add(d);
e.setVisible(true);
}
public void paintComponent(Graphics g){
int x1[]={25,40,10,25};
int y1[]={110,140,140,110};
super.paintComponent(g);
g.fillPolygon(x1, y1, 3);
g.drawLine(10, 10, 10, 10);
}
public static void main(String []args)
{
new MyButton();
}
}