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.
我如何将具有 nimbus 外观和感觉的 JTable Header 的内容居中?我尝试使用 DefaultTableCellHeaderRenderer,但它看起来像这样;
有没有办法让它们看起来像 PARENT_ID 列并居中?
此示例显示了一种方法。通过使用表头DefaultTableCellRenderer,它可以最大限度地减少对 UI 委托外观的影响。
DefaultTableCellRenderer