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.
当我在 tableview 中选择一行时,我需要获取给定列的值。我正在这样做,但返回的是 ObjectList 值而不是 Column 值
tableviewgetSelectionModel().getSelectedItem()
如果您想获得列的确切值,则需要先将 Object 转换为特定的 Generic Class,然后获取它们的值。
见链接
https://forums.oracle.com/thread/2309693