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.
我使用setCursor()方法为 JTable 设置光标。但该游标仅适用于表的行(数据部分)。如何为同一个表的标题设置光标,以便我可以通过双击其(列)右边缘来调整列的大小?
尝试这个:
table.getTableHeader().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));