--- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java 2017-05-12 16:11:43.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java 2017-05-12 16:11:43.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -583,8 +583,14 @@ /** * The preferredSize of the list depends upon the layout orientation. - * + * + *
+ * + * * + * + * * * *
Describes the preferred size for each + * layout orientation
Layout OrientationPreferred Size
JList.VERTICAL * The preferredSize of the list is total height of the rows @@ -626,6 +632,7 @@ * Max cell height is either the fixed * cell height, or is determined by iterating through all the cells * to find the maximum height from the ListCellRenderer. + *
* The above specifies the raw preferred width and height. The resulting * preferred width is the above width + insets.left + insets.right and