I have a JTextField followed by a JTable followed by another JTextField and JTable. How do I set the tab order to go from one JTextField to the next without going to the JTables in between?
Is there anyway to make this work on only a JPanel? I can get it to work on a JFrame but not just on a JPanel. I have many JPanels and don't want to have to create policies for all of them when only one needs the policy.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> Is there anyway to make this work on only a JPanel?
set the panel's policy, then add this line
panel.setFocusCycleRoot(true);
but the panel will be bypassed in the frame's traversalPolicy