我搜索了一下,没有找到正确的答案。有人说检查器选项卡中组件的排列会产生自动选项卡索引。但它没有用。那么netbeans中真的有tab属性吗?
最佳答案
只需使用这段代码就可以了,使用 setNextFocusableComponent()
buttonA.setNextFocusableComponent(buttonB);
buttonB.setNextFocusableComponent(buttonC);
关于JAVA、Netbeans : how do I assign a tab index in a jtextfield?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12948043/