RFR: 4346610: Adding JSeparator to JToolBar "pushes" buttons added after separator to edge [v4]
Damon Nguyen
dnguyen at openjdk.org
Mon Aug 7 16:24:32 UTC 2023
On Mon, 7 Aug 2023 09:31:43 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Adding buttons in a JToolBar after a JSeparator will push the button to the far right of the frame instead of just after the separator
>>
>> 
>>
>> This is because BasicSeparatorUI does not define a maximum size. This leads to the separator getting all the extra width.
>> Fix is made to limit the separator's maximum size to the preferred size of corresponding orientation (i.e. width for VERTICAL and height for HORIZONTAL)
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Test fix
Tested this myself and looks good.
-------------
Marked as reviewed by dnguyen (Committer).
PR Review: https://git.openjdk.org/jdk/pull/15054#pullrequestreview-1565732083
More information about the client-libs-dev
mailing list