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

PopupMenus not displayed for Solaris x86

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.8
    • client-libs
    • x86
    • generic

      PopupMenus fail to appear on Solaris x86. Behaviour is as expected for Solaris on Sparc.

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

      public class PopupTest extends Frame {
          PopupMenu popup = null;
       
          public static void main( String[] argv ) {
              new PopupTest();
          }

          PopupTest() {
              setTitle("PopupTest");
              setLayout(new FlowLayout());
              add(new Label("Press right mouse button inside this frame."));
              add(new Label("A pop-up menu should appear."));
              enableEvents(AWTEvent.MOUSE_EVENT_MASK);
              popup = new PopupMenu("Popup Menu Title");
              MenuItem mi = new MenuItem("Menu Item");
              popup.add(mi);
              add(popup);
              setSize(400, 350);
              show();
          }

          public void processMouseEvent(MouseEvent e) {
              if (e.isPopupTrigger()) {
                  popup.show(e.getComponent(), e.getX(), e.getY());
              }
              super.processMouseEvent(e);
          }

      }

      This is a compliance issue as the above is based on an interactive test (PMenuTests) in JCK-116a.
      This also fails for JDK1.1.7U and JDK1.1.6N.

      stuart.lawrence@eng 1998-12-10

            mbronsonsunw Mike Bronson (Inactive)
            slawson Stuart Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: