Home>
import java.awt. *;
import java.awt.event. *;
import javax.swing. *;
import javax.swing.tree. *;
public class test extends japplet {
  public void init () {
    container contentpane=getcontentpane ();
    contentpane.setlayout (new borderlayout ());
    final string [] colheads={"name", "phone", "fax"};
    final object [] [] data={
        {"cai", "1122", "1122"},        {"jie", "2222", "2222"},        {"tt", "3322", "3322"}
    };
    jtable table=new jtable (data, colheads);
    int v=scrollpaneconstants.vertical_scrollbar_as_needed;
    int h=scrollpaneconstants.horizontal_scrollbar_as_needed;
    jscrollpane jsp=new jscrollpane (table, v, h);
    contentpane.add (jsp, borderlayout.center);
  }
}
  • Previous fsockopen pfsockopen function is disabled, SMTP sends mail abnormally
  • Next The basics of a complete PHP regular expression tutorial