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

Mediumweight popup problem on Solaris

    XMLWordPrintable

    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

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: