-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.6
-
x86
-
windows_nt
Name: mf23781 Date: 06/30/98
If a JComboBox object is set to be non-editable, with the
setEditable(false) method, then the isFocusTraversable()
method should return true. Whereas the actual case is that
it returns false.
The test case below illustrates the problem:
import com.sun.java.swing.*;
public class JComboBoxTest
{
public JComboBoxTest()
{
try
{
JComboBox c = new JComboBox(); // Create JComboBox object
boolean[] state = { true, false};
for(int i=0;i<state.length;i++)
{
c.setEditable(state[i]);
System.out.println("setEditable = " + state[i] +
" isFocusTraversable = " + c.isFocusTraversable());
}
System.exit(0);
}
catch(Throwable e)
{
}
}
public static void main(String argv[])
{
JComboBoxTest t = new JComboBoxTest();
}
}
======================================================================
- duplicates
-
JDK-4144505 Compound components don't behave properly
-
- Closed
-