简体   繁体   中英

Java tab order: How to set Tab order in java swing table

I am new to the java language and I want to set tab order in JTable in java swing. How can we set tab order in java swing?

我假设你的意思是“FocusTraversalPolicy”,不确定在JTable中是否容易处理,但是这里是Sun / Oracle的相关文章: http//download.oracle.com/javase/tutorial/uiswing/misc /focus.html

You need to write a custom Action that does tabbing the way you want. Read up on Key Bindings to find out how to replace an existing Action.

Or for an example that reuses the existing Action to only tab to cells that are editable you can check out Table Tabbing .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM