On 12/01/16 08:21, Rajeev Chamyal wrote:
Hello All,
Please review the following fix for Jdk9:
Bug : https://bugs.openjdk.java.net/browse/JDK-8146276
Webrev: http://cr.openjdk.java.net/~rchamyal/8146276/webrev.00/
Issue : Right aligned ToolBar component does not appear
Cause: While calculating the minimum layout size for the components
SynthToolBar is not checking if preferred size is set for the components.
Fix: Updated the minimumLayoutSize method of SynthToolBarUI.java to check
preferred size of components as well.
Could you give more details why it is not enough to properly layout
buttons when the minimum layout size is only calculated on the minimum
size and the preferred layout size is based on the buttons preferred size?
Thanks,
Alexandr.
Regards,
Rajeev Chamyal