Skip to content

Commit 674d2d9

Browse files
hansonrhansonr
authored andcommitted
JTable no TAB focus
1 parent 27c98fe commit 674d2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/javax/swing/LayoutFocusTraversalPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected boolean accept(Component aComponent) {
236236
} else if (aComponent instanceof javax.swing.JTable) {
237237
// JTable only has ancestor focus bindings, we thus force it
238238
// to be focusable by returning true here.
239-
return true;
239+
return false;// SwingJS NOT true, at least for now;
240240
} else if (aComponent instanceof javax.swing.JComboBox) {
241241
JComboBox box = (JComboBox)aComponent;
242242
return ((ComboBoxUI) box.getUI()).isFocusTraversable(box);

0 commit comments

Comments
 (0)