Integrated: 4346610: Adding JSeparator to JToolBar "pushes" buttons added after separator to edge
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Aug 16 05:38:32 UTC 2023
On Thu, 27 Jul 2023 14:30:23 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)
This pull request has now been integrated.
Changeset: 2bd2faeb
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2bd2faeb7632703192ff8f58db5e58cfd0dfe120
Stats: 112 lines in 2 files changed: 107 ins; 1 del; 4 mod
4346610: Adding JSeparator to JToolBar "pushes" buttons added after separator to edge
Reviewed-by: tr, aivanov, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/15054
More information about the client-libs-dev
mailing list