62,614
社区成员
发帖
与我相关
我的任务
分享
import javax.swing.JFrame;
import javax.swing.*;
public class TableJFrame extends JFrame {
public TableJFrame() {
this.setTitle("Test the JTable!");
this.setBounds(300, 150,800, 600);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
String[] rows = {"A","B","C"};
String[][] cols = {{"1","2","3"},{"4","5","6"},{"7","8","9"}};
JTable jTable = new JTable();
/*写到这就出错了 T_T*/
this.setVisible(true);
}
public static void main(String[] args) {
new TableJFrame();
}
}