Other | Other |
---|---|
1.2.0Fixed | 1.2.2 1.2.2Fixed |
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
There is a problem with Mediumwieghts not popping up on Solaris in 1.2: 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
|