Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 1.1, 1.1.5, 1.1.6, 1.2.0
-
Fix Version/s: 1.2.2
-
Component/s: client-libs
-
Labels:None
-
Subcomponent:
-
Resolved In Build:1.2.2
-
CPU:generic, x86, sparc
-
OS:generic, solaris_2.5, solaris_2.6, solaris_10, windows_nt
-
Verification:Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2022484 | 1.2.0 | Georges Saab | P3 | Resolved | Fixed | 1.2fcs |
Description
import java.awt.*;
import com.sun.java.swing.*;
public class Test extends JPanel {
public Test() {
setLayout(new BorderLayout());
JComboBox screenCombo = new JComboBox();
screenCombo.setLightWeightPopupEnabled(false);
for (int i = 0; i < 20; i++)
screenCombo.addItem(String.valueOf(i) + " Item");
add("North", screenCombo);
JPanel jp = new JPanel(new GridLayout(0,3));
jp.add(new jpanel());
jp.add(new panel());
jp.add(new canvas());
add(jp);
}
public static void main(String s[]) {
JFrame f = new JFrame("ComboBox Test");
f.getContentPane().add("Center", new Test());
f.pack();
f.setSize(new Dimension(300,300));
f.show();
}
class jpanel extends JPanel {
jpanel() { setBackground(Color.black); }
}
class panel extends Panel {
panel() { setBackground(Color.blue); }
}
class canvas extends Canvas {
canvas() { setBackground(Color.red); }
}
} // end Test
Attachments
Issue Links
- backported by
-
JDK-2022484 Mediumweight popup problem on Solaris
-
- Resolved
-
- duplicates
-
JDK-4169858 JMenu does not render properly when set to heavyweight
-
- Closed
-
-
JDK-4112982 JComboBox.setLightWeightPopupEnabled(false) fails to turn off lightweight popup
-
- Closed
-
-
JDK-4129159 SwingSetApplet in IE: JComboBox drop-down problem
-
- Closed
-
-
JDK-4162493 JComboBox does NOT pull down in Java2D Demo
-
- Closed
-
- relates to
-
JDK-4812585 BasicComboBoxUI.FocusHandler doesn't hide popup menu when focus is lost
-
- Open
-
-
JDK-6406264 REGRESSION: Custom combo box calendar popup no longer functional
-
- Resolved
-
-
JDK-4525474 Bogus 'focusLost' sent to AccessibleContext listeners.
-
- Closed
-