Skip to content
Permalink
Browse files
8264218: Public method javax.swing.JMenu.setComponentOrientation() ha…
…s no spec

Reviewed-by: aivanov
  • Loading branch information
prsadhuk committed May 21, 2021
1 parent 9eaa4af commit e48d7d66582d9c9630d85e86ff344794656914fc
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/java.desktop/share/classes/javax/swing/JMenu.java
@@ -1255,6 +1255,13 @@ public void applyComponentOrientation(ComponentOrientation o) {
}
}

/**
* Sets the orientation for this menu and its associated popup menu
* determined by the {@code ComponentOrientation} argument.
*
* @param o the new orientation for this menu and
* its associated popup menu.
*/
public void setComponentOrientation(ComponentOrientation o) {
super.setComponentOrientation(o);
if ( popupMenu != null ) {

0 comments on commit e48d7d6

Please sign in to comment.