<Swing Dev> Review Request for Bug 8146320 JTextField ignores setPreferredSize when having columns

Prem Balakrishnan prem.balakrishnan at oracle.com
Mon Jan 18 10:46:02 UTC 2016


Hi,

Please review fix for JDK9,

 

Bug: https://bugs.openjdk.java.net/browse/JDK-8146320 

Webrev: http://cr.openjdk.java.net/~rchamyal/prem/8146320/webrev.00/

 

Issue:

JTextField ignores setPreferredSize when having columns

 

Cause:

JTextField setPreferredSize is not actually ignored , when column value is set>0.

While retrieving the values set using getPreferredSize(), wrong values were returned.

 

Fix:

Check added, if Column>0 and if Preferred size is not set after setting columns, while retrieving values.

 

Regards,
Prem

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160118/4b4004a7/attachment.html>


More information about the swing-dev mailing list