< prev index next >

src/java.desktop/share/classes/javax/swing/event/MenuDragMouseEvent.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -47,11 +47,11 @@
  *
  * @author Georges Saab
  */
 @SuppressWarnings("serial")
 public class MenuDragMouseEvent extends MouseEvent {
-    private MenuElement path[];
+    private MenuElement[] path;
     private MenuSelectionManager manager;
 
     /**
      * Constructs a MenuDragMouseEvent object.
      * <p>Absolute coordinates xAbs and yAbs are set to source's location on screen plus

@@ -76,11 +76,11 @@
      * @param m             a MenuSelectionManager object that handles selections
      * @see MouseEvent#MouseEvent(java.awt.Component, int, long, int, int, int, int, int, int, boolean, int)
      */
     public MenuDragMouseEvent(Component source, int id, long when,
                               int modifiers, int x, int y, int clickCount,
-                              boolean popupTrigger, MenuElement p[],
+                              boolean popupTrigger, MenuElement[] p,
                               MenuSelectionManager m) {
         super(source, id, when, modifiers, x, y, clickCount, popupTrigger);
         path = p;
         manager = m;
     }

@@ -115,11 +115,11 @@
      * @since 1.6
      */
     public MenuDragMouseEvent(Component source, int id, long when,
                               int modifiers, int x, int y, int xAbs,
                               int yAbs, int clickCount,
-                              boolean popupTrigger, MenuElement p[],
+                              boolean popupTrigger, MenuElement[] p,
                               MenuSelectionManager m) {
         super(source, id, when, modifiers, x, y, xAbs, yAbs, clickCount,
               popupTrigger, MouseEvent.NOBUTTON);
         path = p;
         manager = m;
< prev index next >