| Other | Other |
|---|---|
| 1.1.8 1.1.8Fixed | 1.2.2Fixed |
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
Name: mf23781 Date: 07/14/98
The following testcase can be used to show the problem
import java.awt.*;
import java.awt.event.*;
public class traverse extends Frame
{
public traverse()
{
Frame f = new Frame("Focus test");
Panel p =new Panel(new FlowLayout());
for (int i=0; i<6; i++)
p.add(new Button("Button "+i));
f.add(p);
f.pack();
f.setVisible(true);
}
static public void main(String args[])
{
new traverse();
}
}
Compile and run the application.
You can use the TAB key and SHIFT TAB to traverse forwards and
backwards through the buttons (wrapping around at each end)
Make the frame slightly smaller so that the last componenet
disappears off the screen.
Tabbing now stops at the component before the one off the screen.
======================================================================
|