Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个列表,需要显示为数据。但是JTable with 接受数据作为Object[][],但会给出Object[]。
Object[][]
Object[]
如何在表格中只显示一列?
也许尝试以下...
DefaultTableModel model = new DefaultTableModel(); model.addColumn("MyColumnHeader",dataArray); JTable table = new JTable(model);