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.
正如第二张图片所说,我想在左边锚定“HeaderModel”,在右边锚定“CellModel”。如果它是可能的...
AJTable将显示该getValueAt()方法返回的任何数据。您可以使用合适的渲染器更改单元格的外观。您可以获得默认标头渲染器的副本,如此处所示。这个完整的例子展示了如何将渲染器应用到表格的第一列。
JTable
getValueAt()