Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4168483

Mediumweight popup problem on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.2
    • 1.1, 1.1.5, 1.1.6, 1.2.0
    • client-libs
    • None
    • 1.2.2
    • generic, x86, sparc
    • generic, solaris_2.5, solaris_2.6, solaris_10, windows_nt
    • Not verified

        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

              gsaab Georges Saab
              gsaab Georges Saab
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: