未显示jlabel,因为面板不在列标题中。我不知道什么是错的,这是我的代码:
JScrollPane scrollpane_1 = new JScrollPane();
JTable table = new JTable(); //has 4 columns
JPanel panel_1 = new JPanel();
panel_1.add(new JLabel("Test"));
scrollpane_1.setViewportView(table);
scrollpane_1.setColumnView(panel_1);