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

labels for MenuItems of a PopupMenu added to a List are not displayed (1.1 ONLY)

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: joT67522 Date: 11/11/97


      [similar to 4037195(?)]

      import java.awt.*;
      import java.awt.event.*;

      public class testPopup extends Frame
      {
          private PopupMenu popup;
          private List list;

          public static void main(String args[])
          {
              testPopup thisApp = new testPopup();
          }

          public testPopup()
          {
              super("testing popups for lists");
              setBounds(100, 100, 300, 300);
              popup = new PopupMenu("this wont be displayed");
              popup.add(new MenuItem("ho dee do dee do"));
              popup.add(new MenuItem("funna chunna"));
              popup.add(new MenuItem("popopopopopopopop"));
              popup.add(new MenuItem("doodoodoodoodoodood"));

              list = new List();
              list.add(popup);

              addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e)
                  {
                      System.exit(0);
                  }
              });

              list.addMouseListener(new MouseAdapter() {
                  public void mousePressed(MouseEvent e)
                  {
                      popup.show(list, e.getX(), e.getY());
                  }
              });

              add("Center", list);
              setVisible(true);
          }

      }
      (Review ID: 19375)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              ibdsunw Ibd Ibd (Inactive)
              Reporter:
              johsunw Joon Oh (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: