# HG changeset patch # User serb # Date 1421069218 -10800 # Node ID a492b5c5dc53f51d9ff5c95d1d62df6bc6c60078 # Parent 48d009ddfd46c057772f972791c43c1930fa856f 8068374: setAlignmentX, setAlignmentY, getAlignmentX, getAlignmentY javadoc of JComponent Reviewed-by: azvegint, alexsch diff -r 48d009ddfd46 -r a492b5c5dc53 jdk/src/java.desktop/share/classes/javax/swing/JComponent.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JComponent.java Mon Jan 05 13:30:23 2015 -0800 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JComponent.java Mon Jan 12 16:26:58 2015 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2015, 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 @@ -27,22 +27,15 @@ import java.util.HashSet; import java.util.Hashtable; -import java.util.Dictionary; import java.util.Enumeration; import java.util.Locale; import java.util.Vector; import java.util.EventListener; import java.util.Set; -import java.util.Map; -import java.util.HashMap; import java.awt.*; import java.awt.event.*; -import java.awt.image.VolatileImage; -import java.awt.Graphics2D; import java.awt.peer.LightweightPeer; -import java.awt.dnd.DropTarget; -import java.awt.font.FontRenderContext; import java.beans.PropertyChangeListener; import java.beans.VetoableChangeListener; import java.beans.VetoableChangeSupport; @@ -1868,7 +1861,7 @@ /** * Overrides Container.getAlignmentY to return - * the horizontal alignment. + * the vertical alignment. * * @return the value of the alignmentY property * @see #setAlignmentY @@ -1882,9 +1875,9 @@ } /** - * Sets the horizontal alignment. + * Sets the vertical alignment. * - * @param alignmentY the new horizontal alignment + * @param alignmentY the new vertical alignment * @see #getAlignmentY * @beaninfo * description: The preferred vertical alignment of the component. @@ -1897,7 +1890,7 @@ /** * Overrides Container.getAlignmentX to return - * the vertical alignment. + * the horizontal alignment. * * @return the value of the alignmentX property * @see #setAlignmentX @@ -1911,9 +1904,9 @@ } /** - * Sets the vertical alignment. + * Sets the horizontal alignment. * - * @param alignmentX the new vertical alignment + * @param alignmentX the new horizontal alignment * @see #getAlignmentX * @beaninfo * description: The preferred horizontal alignment of the component.