分类：电脑/网络-程序设计-JAVA相关
问题：帮忙看个JAVA程序importjavax.swing.JBut 
import x.swing.JButton;import javax.swing.JLabel;import javax.swing.JFrame;import  t.Container;import  t.FlowLayout;public class showFlowLayout extends JFrame{  public void showFlowLayout(){    Container container=getContentPane();             tLayout(new FlowLayoimport x.swing.JButton;import javax.swing.JLabel;import javax.swing.JFrame;import  t.Container;import  t.FlowLayout;public class showFlowLayout extends JFrame{  public void showFlowLayout(){    Container container=getContentPane();             tLayout(new FlowLayout(FlowLayout.LEFT,10,20));        for(int i=0;i<9;i++){       d(new JButton("按钮"+i));    }  }    public static void main(String[] args) {    showFlowLayout frame=new showFlowLayout();         tDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     tTitle("标题");     tSize(200,200);     tVisible(true);  }}为什么这段程序，容器内的按钮不能显示啊？
回答：你的构造函数干吗要加个void?

public void showFlowLayout()

去掉void就可以显示了.