OpenJDK / zgc / zgc
changeset 28975:a492b5c5dc53
8068374: setAlignmentX, setAlignmentY, getAlignmentX, getAlignmentY javadoc of JComponent
Reviewed-by: azvegint, alexsch
author | serb |
---|---|
date | Mon, 12 Jan 2015 16:26:58 +0300 |
parents | 48d009ddfd46 |
children | 8c912c147654 |
files | jdk/src/java.desktop/share/classes/javax/swing/JComponent.java |
diffstat | 1 files changed, 7 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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 <code>Container.getAlignmentY</code> to return - * the horizontal alignment. + * the vertical alignment. * * @return the value of the <code>alignmentY</code> 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 <code>Container.getAlignmentX</code> to return - * the vertical alignment. + * the horizontal alignment. * * @return the value of the <code>alignmentX</code> 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.