任何更改JTable组件默认行为的方法 [英] Any way to change JTable component default behavior
本文介绍了任何更改JTable组件默认行为的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改JTable使用的默认快捷方式?例如,我想更改Home和End键,以便它们将移至第一行/最后一行,而不是第一行/最后一列.
is there any way to change default shortcuts used by JTable? For instance I would like to change Home and End keys, so they would move to first/last row instead of first/last column.
有什么办法吗?谢谢您的帮助.
Any way to do this? Thank you for help.
推荐答案
您可以使用Ctrl+HOME
和Ctrl+END
移至第一行/最后一行.您应该尽量不要更改此行为,因为这是用户习惯的.
You can use Ctrl+HOME
and Ctrl+END
to move to the first/last row. You should try not to change this behaviour because this is what users are used to.
这篇关于任何更改JTable组件默认行为的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文